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

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

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

Check this out 16507699 . It gets ok on the first 7 tests then CE. This stuff is weird :v :V

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

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

illuminati

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

I think maybe CF run different cases on different machines and different machine has different configuration.

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

Did you check what the compiler message was?

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

    Can't compile file:

    cc1plus.exe: out of memory allocating 65536 bytes

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

      Yeah, happens with me often! compiler optimizes remember, so unless you need large memory, you don't allocate large memory. So its reasonable why you'll get CE on 8th or 23rd test case

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

        No, it's not reasonable at all. The program either compiles or doesn't regardless of the testcase.

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

          Well, it confuses me too, because compile time error due to something happening at runtime???, but the optimization is nice, so maybe they found a way to do so. Do you know anything about this?

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

Umm, the link Alex7 gave 16507699 doesn't have CE. Its WA.

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

I once got this verdict. Resubmitted the same code using the same compiler and got AC. I hope that doesn't happen to me inside a contest :/