### NaveeezZ's blog

By NaveeezZ, history, 7 weeks ago,

Hey everyone :) .

I was solving this Problem , when i came across an issue with the ceil function.

Using the inbuilt ceil func:

WA on test 108

Using manually written Ceil func:

AC

Can someone tell me the reason behind this?

• 0

 » 7 weeks ago, # |   +1 64-bit floating point variables can only store 53-bit integers without precision loss and this is not always enough. Also you can implement your intceil function as (x + y - 1) / y.
•  » » 7 weeks ago, # ^ |   0 Wow, thanks