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

用ceil时减eps,floor时加eps 以消除误差

Posted by 2008022118 at 2010-04-20 18:32:39 on Problem 1266
我开始测 
0 1
0 -1
1 0
时,居然答案是8!
在取整前,明明都是1和0答案是2,
最后却来个8,
原来ceil和floor出现问题~
补点精度就OK了~

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