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

int 存坐标,强制转double可以过的,不要误导别人,wa的自己看算法吧

Posted by Belldandy at 2012-02-14 16:02:44 on Problem 3625
In Reply To:如果觉得自己算法没有错,但就是wa的话,很可能是精度问题,建议直接用double 存坐标,计算全用double,不要用强制转换,g++要用printf("%.2f\n",........);c++要用printf("%lf\n",......);" Posted by:854746559 at 2011-07-22 12:50:08


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