Changing bounds makes WA solution AC for unknown reason

Правка en1, от WhaleVomit, 2017-12-12 20:49:31

I was working on the problem Xenia and Tree here: http://codeforces.me/problemset/problem/342/E The actual problem statement doesn't matter, I am unsure why my first solution gets WA (http://codeforces.me/contest/342/submission/33140735) and my second gets AC (http://codeforces.me/contest/342/submission/33140905).

The only difference between the two submissions that mattered is that I increased MAX_N from 100000 to 100005. This should not have changed anything, because I'm pretty sure my array sizes were all large enough.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский WhaleVomit 2017-12-12 20:52:09 72
en2 Английский WhaleVomit 2017-12-12 20:50:22 13
en1 Английский WhaleVomit 2017-12-12 20:49:31 589 Initial revision (published)