Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:一个规律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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator