Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:救命呀,那位大牛帮我修改修改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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator