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

一个规律

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

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