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 o87481299 at 2011-09-28 21:08:12 on Problem 1014
In Reply To:要先对数据预处理一下 Posted by:bluesunxu at 2011-05-25 02:42:38
> 我没做过这题,就讲一点思路你参考一下。
> 
> 因为只有六种石头,两个人平分,所以首先将所有同一种类的石头均分。比如价格为1的石头有5颗,每人就先分到2颗,剩下一颗;如果价格为2的石头有6颗,每人就分到3颗。(a[i] = a[i] %2)
> 
> 这样,最后从1-6就剩下1颗或0颗。然后再看能不能均分这些剩下的石头。
要是 1有两个4有一个6有一个你怎么办

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