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 united at 2009-10-30 00:00:30 on Problem 2328
In Reply To:一个简单的思路 Posted by:zhanglongpan at 2009-09-03 22:57:53
也可以这样做
每读入一个数,如果high,就存其本身,否则存其相反数
读入right on 的数num后遍历数组,数组中数字t>0,则 判断 t-num>0, 不成立则 dishonest. t<0 则判断 num+t>0,不成立则dishonest.

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