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 VacWei at 2009-10-15 16:08:20 on Problem 2413 and last updated at 2009-10-15 16:11:48
In Reply To:救命呀,那位大牛帮我修改修改 Posted by:0705020329 at 2009-10-15 15:17:58
if(cmp(a,num[i])>=0&&cmp(num[i],b)>=0)
这一句有问题,cmp(a,num[i])比较的时候是从个位向高位比较,所有出错
你试试 32 100 这组数就知道了
改成这样if(cmp(num[i],a)<=0&&cmp(num[i],b)>=0)就可以了

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