Hesitant to use logarithm

Revision en1, by sajidhasan2021, 2020-09-20 18:29:53

I was solving Div.2 114A. I have used the log function to solve this problem and repeatedly get wa for the 9th test case. I got the correct answer for that test case in codeblocks and idone but I got wrong answer for that test case in codeforces. My question is does the log function not always give the correct value or does the answer vary from compiler to compiler? Submitted code : https://codeforces.com/contest/114/submission/85798651

Thank you.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sajidhasan2021 2020-09-20 18:29:53 532 Initial revision (published)