Блог пользователя zx2003

Автор zx2003, история, 6 лет назад, По-английски

Why this submission get WA? the submissionhttp://codeforces.com/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.

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

Yes.

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.