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 go4fun at 2009-04-19 17:16:39 on Problem 1730
注意,64开3次方,用pow函数来算,结果是3.99999999999999999,这是个精度问题,应该想办法把它变成4.我就是一开始没注意WRONG了。自己定格精度,比如定为0.00000001,在这个误差范围内要看成整数。比如,把3.999999999999999看成4.改掉这个后一次AC了。
美妙的Accepted啊!!!

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