I have the following submission for problem 691D:
http://mirror.codeforces.com/contest/691/submission/19104383
It says wrong answer on test 3.However I get the correct answer on my codeblocks compiler.
I have the following submission for problem 691D:
http://mirror.codeforces.com/contest/691/submission/19104383
It says wrong answer on test 3.However I get the correct answer on my codeblocks compiler.
I think it was a judge problem...
Your answer was right on test 3 : 19110166
In your code:
That's most likely your issue (Variable length arrays). Try: