Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

There was a bug in CF433 div2 C during contest, my solution (identical) passed tests submitted today. I just want somebody to know, so that bugs like this won't happen in the future. My submission: http://codeforces.com/contest/879/submission/31755726 Accepted submission with the same code: http://codeforces.com/contest/879/submission/32008085 Should I report/mail it to somebody maybe? I don't know who's responsible for things like this. Thanks.

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

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

I had faced a similar situation in previous round,I don't know what it means but it sure wasted a lot of my time.If I am wrong please point out.

Link

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

It is really bug, because last "\n" of an output is optional.

And Codeforces' COMPARE function don't show any difference comparing two versions.

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

    I just realized I'm writing spaces at the end of every line (my helper function does that). It's implied, but not really specified, that whitespaces are ignored in the output, right? So, maybe, it's partially my fault.

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

      Spaces are not allowed, but one newline (the only of all whitespaces) at the end of an output should be optional. I haven't seen any changes with Codeforces' COMPARE function, your both submissions seem identical.

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

        I think it might not use standard COMPARE function, because there's many correct solutions. Thanks for the info that spaces are not allowed, I will remember in the future.

      • »
        »
        »
        »
        7 лет назад, # ^ |
          Проголосовать: нравится +1 Проголосовать: не нравится

        Oh, you mean COMPARE for source codes. Sorry for confusion.

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

There was an announcement in Div1 contest:

Checker incorrectly handled whitespace characters, it is fixed now, affected solutions are rejudged.

You can see it if you enter Div1 contest page. However, I don't see such an announcement for Div2.