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:sspp at 2004-11-24 10:27:06 不要用a!=0.00这样的判断语句,用fabs(a)<1e-10因为读入后不一定是0e0这样,可能产生实数误差变成1e-355之类的 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator