ReCRuS's blog

By ReCRuS, history, 2 months ago, In English

My friend submitted https://codeforces.com/contest/1809/submission/198820962 this code during the contest and got the wrong answer. He submitted with GNU C++20 (64). I submitted his code in another version (GNU C++17) and the code got accepted. Accepted code link : https://codeforces.com/contest/1809/submission/198864459

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by ReCRuS (previous revision, new revision, compare).

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

No, because sqrt has precision issues and it might give different answers each time