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 965135676 at 2011-04-12 20:56:43 on Problem 1013
In Reply To:一个没有通过的思路(请教) Posted by:wangbin_ss at 2010-10-14 08:53:56
> 设置判定数组boolean isTrue[12],默认都为false.对3组结果,进行遍历,规则如下:
>    1. 如果结果为even,则标记结果中对比的8个dollar对应的标记为isTrue;
>    2. 如果结果为其他,则标记结果中除了这8个dollar的剩下4个对应的标记为isTrue;
> 最后对标记数组isTrue遍历,如果发现某一项为false则判定这个对应的dollar为counterfeit.并在3组结果中找非even的结果,在通过这个结果来判定这个dollar轻或重。
> 
> 不知道我这样想有何问题,请求指教~

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