Quote:
My code seems to work fine, but whenever I try to upload it to a contest website my code doesn't pass all the test cases.
Because your code is wrong !
For n=12, your answer is 223 when the best answer is 26.
Where do you try to upload your code ?
Quote:
So I wanted to ask for help, I want to know how can I find that specific test case or even better help me find that test case.
Short answer: you don't.
Test cases are kept secret on purpose.
This avoid submissions of program that just contain a list of answers for the specific test cases, and no real algorithm that solve the problem.