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 |
高精度注意,64开3次方,用pow函数来算,结果是3.99999999999999999,这是个精度问题,应该想办法把它变成4.我就是一开始没注意WRONG了。自己定格精度,比如定为0.00000001,在这个误差范围内要看成整数。比如,把3.999999999999999看成4.改掉这个后一次AC了。 美妙的Accepted啊!!! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator