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:ceil函数传float参数导致 WA

Posted by EULERXIA at 2021-06-10 19:56:08 on Problem 3104
In Reply To:Re:ceil函数传float参数导致 WA Posted by:EULERXIA at 2021-06-10 19:53:51
> float除法会有精度损失,可以不需要ceil函数直接利用(a+b-1)/b的方式上取整

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