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

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

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
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится 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...

»
14 месяцев назад, # |
  Проголосовать: нравится 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.