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

Автор 10kdogmore, история, 5 месяцев назад, По-английски

During Codeforces Round 1065 (Div. 3), I wrote problem H and defined a segment tree. I queried max to m+n+1 but forgot to expand my tree[MAXN<<2] array, so it should cause a UB. Unexpectedly, I passed the problem and my friends all failed to hack me. Can somebody hack me or explain the reason why it can pass? Thanks so much.

Submission ID: 349946106

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

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

Please hack him, because I made a bet with him. If anyone hacks him, I will get a McFlurry.

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

It got RTE on my computer but somehow got AC on codeforces. I don't understand how.