Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:我还是不懂。。为啥只要限制总的翻转次数在1~16就可以判断出是否可以翻成全白或者全黑呢!为什么呢!!

Posted by Star_m6 at 2016-11-12 15:22:10 on Problem 1753
In Reply To:我还是不懂。。为啥只要限制总的翻转次数在1~16就可以判断出是否可以翻成全白或者全黑呢!为什么呢!! Posted by:Saleed at 2016-09-21 21:12:24
比如说搜完了第一行和第二行
如果第一行的格子还有不满足要求的,就可以return
所以只枚举第一行的方式(2^4种)
由此,第二行要想满足要求,第三行的操作方式就确定了。
一直到最后一行都可以确定

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator