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 |
用ceil时减eps,floor时加eps 以消除误差我开始测 0 1 0 -1 1 0 时,居然答案是8! 在取整前,明明都是1和0答案是2, 最后却来个8, 原来ceil和floor出现问题~ 补点精度就OK了~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator