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

Re:两个代码就是加1的位置不一样,为什么一个对一个错?

Posted by towelie at 2014-02-24 08:29:44 on Problem 1423 and last updated at 2014-02-24 08:32:35
In Reply To:Re:两个代码就是加1的位置不一样,为什么一个对一个错? Posted by:kimi940211 at 2014-02-23 22:01:57
It's a floating point round-off error: e.g.

(pow(2.0, 53) + 1) and pow(2.0, 53) would be rounded to the same floating point number when using the IEEE 754 representation

> 一个是m加1,一个是m赋值给answer后answer加1

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