Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:这题的数据应该是有问题的,测试数据的精度好像不够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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator