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 dirdirdir3 at 2010-01-14 14:35:17 on Problem 1014
可以证明的是分成的两个组的数,其中同一个值的marble两个组的数量的差不大于13...........也就是只需要考虑15左右就行了,其他剪掉一个偶数去掉。
如61 38 0 1 3 21 可以变为:15 14 0 1 3 15......
1 34 6778 1332 0 12 考虑: 1 14 14 14 0 12......
31 0 1 0 0 0----->15 0 1 0 0 0
其实和取模有点相似,不过保留足够的位就可以了......................

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