Astroflexx's blog

By Astroflexx, history, 5 hours ago, In English

In yesterday's contest, my solution for problem C received WA on test 3. I went crazy trying to find a mistake in the logic.

Turns out I hadn't initialized my border variable to -1 (in case when a border doesn't exist) and thus it contained some garbage value and was giving wrong output.

I fixed it and now it passed.

Sadge, guess I learnt something.

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