ACCEPT's blog

By ACCEPT, 13 years ago, In English
this code (360189) got AC, but in my computer for test #18, it's write:
NO
NO

but correct answer is:
YES
NO 
Tags bug
  • Vote: I like it
  • -37
  • Vote: I do not like it

13 years ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it
1. Your link is really bad http://www.codeforces.com/contest/70/my lead to users own submits for problem. So the only thing I can find following this link are my own solutions.
2. Look maybe some variables in your code are not initialized or you read elements after an array. This can lead to different behaviour in two consequent runs.
13 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it
what's the language of code and compilators on your computer and on online judge?
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
I cant see your code but i think you have used a loop for multiple testcases and forgot to initialize some arrays,variables etc. Codeforce system reads every set of input separately,so the code passed. Even if you dont write test case loop,still it will run fine for every case on system.