da_201612051's blog

By da_201612051, history, 15 months ago, In English,

http://codeforces.com/contest/749/submission/25673548

I get this error on one test case. My program runs properly on the local machine. Then I submitted this code which worked perfectly

http://codeforces.com/contest/749/submission/25673595

What is the reason for this error?

Thank you.

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

»
15 months ago, # |
  Vote: I like it 0 Vote: I do not like it

You are printing extra twos in the wrong submission...

Use 9 as input and hopefully you will see the problem. :D

  • »
    »
    15 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    ohh yes. I forgot to increment i by 2 in the else part :D

    Thanks a lot.