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

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

so my solution 262742856 had passes 8 pretests during live contest but after the contest was over,it gave run time error on test case 1.i changed my language to c++20 from c++17 and it got accepted,my question is why was it showing pretests passes during contest then?it is unfair to me.please see this Stefan2417 and alexchist

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

»
2 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

You are accessing outside the bound of $$$ans$$$. This is undefined behavior.

»
2 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

why am i getting downvotes?if i would have known my code is wrong i would have corrected it then only,but my code passes 8 test cases.it is unfortunate as i was getting positive delta and ended up getting negative delta