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

水过100题,对硬币计分即可

Posted by SGDQ111 at 2016-07-09 12:02:49 on Problem 1029
用score[]计分,flag[]记每个硬币真假(flag为false不一定假,为true一定真)
大于,且flag为false,则++
小于,且flag为false,则--
等于则score归零,且把flag置为true
最后比较找出score绝对值最大的即为假,注意有多个最大值的判断即可

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