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:这题的数据应该是有问题的,测试数据的精度好像不够

Posted by HW at 2005-07-31 17:44:48 on Problem 2514
In Reply To:这题的数据应该是有问题的,测试数据的精度好像不够 Posted by:HW at 2005-07-31 17:42:33
> e.g.
> 1801979803
> 的答案AC程序给出的是0
> 
> 我认为正确的应该给出1
> 
> 这个位数的数字是
> 114601607的平方的最后那个数字,因为double的精度不够,最后的数差了1,得出13133528326982448
> 而正确的应该是13133528326982449
> 
> 另一个数字是2
> 
> (2+8 )% 10=0
> (2+9)% 10=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