| ||||||||||
| 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 | |||||||||
这个程序有错In Reply To:Re:能不能给一个原程序? Posted by:xfxyjwf at 2005-07-06 11:29:45 该程序在处理
123 45 456 345 56
这组数据时,该行会溢出
即(y-x+l)=4294967274
估计测试数据有问题
> {m=m-n;x=(y-x+l)%l;}
> else {m=n-m;x=(x-y+l)%l;} //把其中移动比较慢的那个当做不动。
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator