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:Re:救命呀,那位大牛帮我修改修改 Posted by:VacWei at 2009-10-15 16:08:20 > 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)就可以了 神牛THX哈! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator