Dear Codeforces Backend Team,
In the CSES question set platform, we have the option to view the full test cases where our solution fails. However, this feature is not available on Codeforces, as the test cases are not visible.
It would be a great help if you could make these test cases visible.
Thank you for considering this suggestion.
Best regards,
havn't you used gpt
how does that help in finding hidden test cases ?
Sometimes when in test cases >4 where i get wrong answers then to check where can i change my code from this we can learn to optimise the code as well.
else we are only getting that wrong answer on test case x,y...
Because all the edgecases and actual logic of code is being checked in hidden test case 2..
hi! not trying to shift the attention from this blog's agenda (i would also be pleased if test cases could be made public, if possible) but i'd recommend you to explore stress testing too, it's pretty cool and usually helps in successfully finding a counter-example, and that too fast and efficiently.
while I do not like edge cases myself, I rather prefer it not be shown, because it allows you to push towards a near-perfect solution with minimal cues.
Apart from stress testing, You may see on which test case it gives wrong answer and print the input, in most problems this will work.
user name checks in
I remember seeing somewhere that they're not visible to make it harder for people to steal problems from Codeforces (if someone wants to steal problems, they need to make tests themselves). You can explore stress testing though, it really is a very helpful tool. Oh yeah, I just saw the comment above me, and you can do that as well; add
print(n, a)
to your code, for the wrong test case.It's harder than it seems.
print(n, a)
must be at the exact wrong test case for it to work, else other previous test cases will fail because you have extra output. And sometime it doesn't show fully what you print, or in interactive problems only show the first word of what you print.ive created stress testing script which i use to find failing testcases which can be used only in practice
ill see if i can find a way to host it
bascially what it does it, u need to submit 2 codes, a correct code and your failing code, and then it will run almost 100 small tests, and tell u which test had a different output from ur correct one
bascially what we do manually will be done by computer under 1 min
Can anyone elobaroate more on stress testing ? any thread or source to learn more ?