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 hawk at 2005-05-06 17:11:47 on Problem 2150
In Reply To:不需要,最多才7个有效数字,算法对了用double就错不了的 Posted by:frkstyc at 2005-05-06 17:08:37
比如保留1位
2.049999999999999
就可能变成2.1或者2.0
就看数据中有没有这么巧的了

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