Codeforces does not supply the tests' input for us...
# codeforces
p
Codeforces does not supply the tests' input for us to check, right?
p
What do you mean? Each problem has input/output examples in its description.
s
I've seen some problems that will show you input/output for some failed tests for each submission. I haven't figured out a pattern though.
p
I am getting a "Wrong answer on test 2" ang nothing else as far as I can see. It works for me on the sample input, of course 👼
e
What contest/problem that is? In the “practice mode” it should show you test input if you click on your submission (below the code the full test log is shown)
p
yes, practice mode, last test; this is all I can see
e
Thanks. I see it the same way, too. Will take a look!
p
awesome, thank you for the opportunity to sport with my favourite programming language ❤️
e
Unfortunately, this problem has a multitest (many tests in a run) and the second test is already too big to be displayed
p
oh...
I cannot figure out a test case that makes my program fail, any clues? or would it be possible for you to upload the test 2 input here?
e
The usual process to debug this kind of problem is to write so called “stress test” that generates random small inputs and verifies their answer via some trivial algo that is definitely correct.
You can also take somebody else’s correct code and stress test against it. This way you’ll quickly find small example where your code is wrong and will be able to figure out why.
p
yes, maybe I was being a bit lazy 😜
I will try that when I find some time, thanks