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

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

Here are two submission for problem d , of ABC 087. one is giving due to declaration of int xdp[][] and int ydp[][] while other is passing using bool xdp[][] and bool ydp[][] .

Any idea, why its happening so!

AC : https://atcoder.jp/contests/abc082/submissions/5496820

int RE : https://atcoder.jp/contests/abc082/submissions/5496847

code :

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

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

Have you tried the custom invocation tool? You should be able to figure out the cause yourself using that.

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

it's because stack overflow, i changed your xdp and ydp array to vector (so that the elements stored in heap) and it accepted.

https://atcoder.jp/contests/abc082/submissions/5499771