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 lilingfei at 2015-04-22 22:36:08 on Problem 1013
1、遇到even的则都标记为真钱
2、遇到up的把两边swap
3、遇到up/down则把每个可疑钱币在两边出现的次数+1
4、三次完毕后,假钱一定在某一边出现了与up/down相同的次数。在左边就轻,右边就重。

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