I'm wondering how you've developed the strategy to determine critical test cases so that I may share the knowledge with others.
Thanks in advance!
brianfry713 -> how are you so good at test cases?
Moderator: Board moderators
brianfry713 -> how are you so good at test cases?
all that matters is AC
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: brianfry713 -> how are you so good at test cases?
I often write test case generators using rand().
Check input and AC output for thousands of problems on uDebug!
Re: brianfry713 -> how are you so good at test cases?
that's so smart... why was I trying to rely on human ingenuity 
would you do this during an actual contest? to make it feasible for that enviroment

would you do this during an actual contest? to make it feasible for that enviroment
all that matters is AC
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: brianfry713 -> how are you so good at test cases?
I don't know if I understand your question.
If I'm participating in a contest, I'll usually just write the code to solve the problem. The only time I might write a test case generator is if I'm able to write a brute force TLE solution and I want to compare my WA code against it for small inputs.
I often write test case generators to help other people find test cases their code is failing on and compare their output to my AC code.
I sometimes create input for this online judge, and I might use a random test case generator for that.
If I'm participating in a contest, I'll usually just write the code to solve the problem. The only time I might write a test case generator is if I'm able to write a brute force TLE solution and I want to compare my WA code against it for small inputs.
I often write test case generators to help other people find test cases their code is failing on and compare their output to my AC code.
I sometimes create input for this online judge, and I might use a random test case generator for that.
Check input and AC output for thousands of problems on uDebug!