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

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

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

Hi all! Many times I have seen people saying that their solution fails at a particular test case. How they observe it? Is there a way to find out the test case at which your program fail?

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

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

No one can exactly know onto which test case their solution is generating wrong answer on spoj. What most of us can point is generally which test file is making the code fail. It is because during execution on some of the problems the judge displays "Running on test (9)" etc.

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

    I guess that despite some wrong answers on some tests, the judge run your program on all tests.

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

      No the system is similar to codeforces if your code generates a wrong answer on say test file 9 then it will not be further judged on test files 10,11,12 etc.

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

        If it is so than we can simply follow the execution and find out the test from which the judge stop testing. However I don't think that it's working for all problems.