Not_Abdul_Munim's blog

By Not_Abdul_Munim, 4 days ago, In English

In the last round Codeforces Round 1134 (Div. 4)

this submission got accepted for the problem E — Avalanche although after looking at the constraints we can clearly see that the code will face an integer overflow so, is it due to weak testcases or something else ? because mostly when I get an integer overflow I get a diagnostic warning if it is normal can any one tell for which integer overflows our code will run normal and for which it will not

and also there is also a submission I was seeing code of this person code

he has similar logic but he is having a wrong answer due to the integer overflow so my question is that did the code above passed by luck or is there something else behind the scenes!

Any insights would be appreciated!

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it