I got WA when used
but got AC when used
Can somebody tell me the difference between the two? My submission using both: https://www.codechef.com/viewsolution/23444985  using ceiling function https://www.codechef.com/viewsolution/23444732  using ternary operator asked 18 Mar, 22:23

An easy way to compute answered 24 Mar, 05:16
Thank you tried with with long double and it worked and also thanks for the tip for calculating ceil function. Much appreciated.
(25 Mar, 11:08)
Loved the (a+b1)/b tip!
(25 Mar, 12:25)

Let k=8, (rl+1)=3 Then the first value of m is 4. While the second line checks whether 8/3 + 8%3 == 0, which simplifies to 4==0. I haven't seen the rest of your code, but this observation might help you. answered 21 Mar, 12:02
