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:一个规律

Posted by 306457592 at 2009-08-30 17:10:52 on Problem 1176
In Reply To:一个规律 Posted by:TangMing at 2009-08-01 18:51:47
> 对于按下的总次数c大与4的那么c=c%4+4;
> 因为:如果c大于4,那么4个按扭都可以被按到
>      留下的肯定都是重复的,那就看是谁会被重复了
> 比如说:c=8;那么效果就和c=4相同,要么有的被重复,要么不被重复
>         c=9,效果同c=5;..
> 接下来直接暴力就可以过了。.

命题可以更强一些:c与c%2+4等价(c > 4)。
但对于这道题,c与4等价(c > 4),参见 http://www.608088.com/show-85-1.html

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