sub1: http://codeforces.me/contest/512/submission/9696765 sub2: http://codeforces.me/contest/512/submission/9696746
Difference between above two code in line 24. in AC submission I wrote ar[111] where n=100. In another submission I wrote ar[33]. But the second verdict is WA. Why that happen?
when u access out of bounds of an array, it's not defined in c++ what will happen. undefined behavior