更新时间:2023-02-19 23:15:47
我的代码似乎工作正常,但每当我尝试将其上传到竞赛网站时,我的代码都没有通过所有测试用例。
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.
因为你的代码错了!
如果n = 12,当***答案是26时你的答案是223。
你在哪里尝试上传你的代码?
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 ?
所以我想问一下求助,我想知道如何才能找到具体的测试用例,甚至更好地帮助我找到测试用例。
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.