Glitch in sqrt function in codeforces compiler only and nowhere else ?

Revision en1, by AtulMishra0740, 2022-10-07 21:08:21

I have noted a glitch in the codeforces compiler leading to my failed on main test cases verdict. In the question B of this contest, whose link is this, my solution which passed on pretests is this

After running on main tests , it showed wrong answer on main tests 11 .

I checked the error and found it is giving wrong answer in this test case : 77921270569329490 377318254283917957 Its correct output is : 1005355647 while my code on codeforces compiler gave the output : 1005355648

I copied my code and ran it on every online compiler I know as well as my local compiler and everywhere it gave the correct answer, while in codeforces inbuilt compiler it gave wrong answer.

I tried to dig further in it and found that it is not even printing the square root of 77921270569329490 correctly (which is 279143817, but its giving 279143816), which is taken care in all other compilers.

This glitch lead my answer to fail in main test cases.

If the moderator is viewing this, please check my submission on different compiler or do something about it. I do not want my rating to go down for no reason while it could have gone up.

Tags wrong answer, glitch, sqrt, system test cases

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AtulMishra0740 2022-10-07 21:08:21 1360 Initial revision (published)