zx2003's blog

By zx2003, history, 7 years ago, In English

Why this submission get WA? the submissionhttp://codeforces.net/contest/986/submission/38775795 I run it on the CUSTOM INVOCATION with the WA data,and the result is right. Can you tell me the bug?Or codeforces has bug.

  • Vote: I like it
  • +1
  • Vote: I do not like it

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

Yes.

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

While its true that on custom invocation you get 10 (which you should), I ran it on another online compiler and it gives 11. Seems like there's some kind of undefined behavior in your code.