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:emperorlu at 2008-01-15 13:54:59 因为,2*m可能超出int的范围 比如这组数据 2000000000 2000000000 用unsigned,多了一个有效位,就OK啦! 用int的话判断条件改为这样if(n/2<m),也OK! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator