captainkhan's blog

By captainkhan, history, 6 weeks ago, In English

I was solving the Div. 2 (B) problem THU Packing Puzzle from a recent contest, and my solution failed on test #2.

In test #1, it ran 5 test cases and all of them passed. However, in test #2, it processed around 9260 test cases, and my solution failed at test case 441. The issue is that I genuinely want to understand why it failed and what specific constraints or input caused the failure. Unfortunately, the platform only shows: “wrong answer 441st numbers differ — expected: '3', found: '6'” and the rest of the test input is hidden behind “...”, which is not clickable.

So this is a kind request to Codeforces to consider adding a feature (or button) that allows users to view such failing test cases (at least partially or with constraints), as it would greatly help in debugging and encourage users to improve rather than give up.

Also, if anyone knows a way to access or reconstruct those hidden test cases, I would really appreciate the help.

  • Vote: I like it
  • +13
  • Vote: I do not like it

»
6 weeks ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Sometimes, what you can do in this situation is that you can observe the pattern of the test cases to guess what the test case you failed (441st for example) would look like.

»
6 weeks ago, hide # |
Rev. 2  
Vote: I like it +12 Vote: I do not like it

I use a trick, like if t<441 print your answer else print input, it gives you the input for that testcase.