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:如果觉得自己算法没有错,但就是wa的话,很可能是精度问题,建议直接用double 存坐标,计算全用double,不要用强制转换,g++要用printf("%.2f\n",........);c++要用printf("%lf\n",......);"In Reply To:如果觉得自己算法没有错,但就是wa的话,很可能是精度问题,建议直接用double 存坐标,计算全用double,不要用强制转换,g++要用printf("%.2f\n",........);c++要用printf("%lf\n",......);" Posted by:854746559 at 2011-07-22 12:50:08 是啊,改成double的点,输出改成%.2lf就ac了,郁闷,跟题说的最后一句有关吗? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator