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

这个程序有错

Posted by Leimiaos at 2005-11-15 11:10:58 on Problem 1061
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:
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