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

Re:请大家帮忙改一下, 为什么不停的运行呢?

Posted by hubo1016 at 2005-04-20 21:32:18 on Problem 1003
In Reply To:Re:请大家帮忙改一下, 为什么不停的运行呢? Posted by:sspp at 2004-11-24 10:27:06
不要用a!=0.00这样的判断语句,用fabs(a)<1e-10因为读入后不一定是0e0这样,可能产生实数误差变成1e-355之类的

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