Блог пользователя Axial-Tilted

Автор Axial-Tilted, история, 5 часов назад, По-английски

i was too sleepy and decided to quickly solve a problem before sleeping so i submitted a quick code for this problem

https://codeforces.com/problemset/problem/1132/E

even tho my code is wrong it still passes all 90 tests but while i was trying to prove my solution i realized it was wrong and here is a counter example

889

0 0 0 0 0 0 120 105

here the the answer is 889 but my code outputs 888

271074483

iam just curious how its even possible to pass 90 tests with a wrong code

UPD : the test has been added to the problem and now the submission shows WA on that test

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

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

Auto comment: topic has been updated by Axial-Tilted (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Axial-Tilted (previous revision, new revision, compare).

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

waiting for the proof by AC meme

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

[redacted]

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

How did u came up with that counter-example? I usually move on to another problem as soon as I get AC.

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

I added this test into the problem

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

same thing Here

Counter case
  • »
    »
    95 минут назад, # ^ |
    Rev. 2   Проголосовать: нравится +6 Проголосовать: не нравится

    Done! Sometimes I am amazed by the technologies of Codeforces: I opened a problem that was prepared 14 years ago. It opened in Polygon without any issues. I just added some tests to it and built the package. Everything was compiled and worked perfectly. Such backward compatibility over a span of 15 years is an excellent result!

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

Auto comment: topic has been updated by Axial-Tilted (previous revision, new revision, compare).