Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор primeprogrammer2021, история, 3 года назад, По-английски

How to view the test cases which come after ...

It's very annoying that the cases on which the code fails are not on top and are too down that they are not visible.

Please help if there is some way.

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

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

I'd honestly say that it's better if you can't view test cases. In most if not all contests, tests cases are hidden, so it makes sense for them to be hidden during practice. Plus, it improves your debugging skills :)

But, even if it's ideal or not, I'm pretty sure that codeforces doesn't have a feature of viewing all the test cases...

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

You can atleast get the input on which you get wrong answer using this method:

See this solution. In the 2nd testcase, on test 324, the code gives WA according to jury.

Now see this modified code. The passed testcases can be put as t==... separated by || (see code), else the input for the test number can be displayed.

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

    But this is true only if your solution is wrong for first test case sample. Let's say your solution went through 3 test case samples each containing 1000 tests. Now your answer is wrong on 800th test of 3rd test case sample, what can we do about it?