Please read the new rule regarding the restriction on the use of AI tools. ×

primeprogrammer2021's blog

By primeprogrammer2021, history, 3 years ago, In English

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.

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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.

  • »
    »
    119 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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?