"Feature Request: Show the Exact Failing Case in a Test"

Revision en1, by suhani_garg, 2025-03-17 23:36:13

Hello Codeforces community!

I have a suggestion that I believe could improve the debugging experience on Codeforces, especially for those practicing problems.

Currently, when a submission fails, Codeforces only tells us which test case failed but does not specify which part of the test case caused the wrong answer. This makes debugging quite difficult, especially when a test case contains multiple queries or operations.

Suggestion It would be helpful if Codeforces could display the exact sub-part of the test case that causes the wrong answer instead of just showing the entire input. For example:

If a test case consists of multiple queries, indicate which specific query caused the failure. If the error happens at a specific index in an array, highlight that index. Maybe an optional "debug mode" could be enabled for practice problems to provide such insights. Possible Concerns I understand that revealing too much information might go against the competitive programming spirit, and implementing this in live contests might be impractical due to performance concerns. However, adding this feature for practice problems could significantly improve learning and debugging efficiency.

What do you all think? Would this be a useful feature? Looking forward to your thoughts!

Tags codeforces, feature-request, debugging, competitive-programming

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English suhani_garg 2025-03-17 23:36:13 1357 Initial revision (published)