Блог пользователя Not_Abdul_Munim

Автор Not_Abdul_Munim, 4 дня назад, По-английски

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!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится