tanujWF's blog

By tanujWF, history, 9 years ago, In English

I am having no idea why there is a run-time error on test 3 in this interactive problem.Please let me know my mistake as I have tried that many times. Works fine on my system.

http://codeforces.me/contest/811/submission/32159071

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
9 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

If all steps of your path go down, you don't initialize the variable and get undefined behavior in the last cycle.