### fiver's blog

By fiver, 10 years ago,

Does anyone know how can I download the full test cases for a particular problem? And if this is not possible, WHY is it not possible? Is that intentional?

One of my problems failed today and I wanted to debug it, but the test case is truncated because it's too long.

Thanks, Petar

• -7

 » 10 years ago, # |   0 It is not possible. And, in my opinion, is is useless. I really do not understand how are you going to debug large test.
•  » » 10 years ago, # ^ | ← Rev. 2 →   0 Not exactly...There can be several reasons: If it is time limit, you can see how off you are and try different optimizations. There are cases where the system errors, so this way you can check — during the last contest a correct solution of mine was judged as incorrect. I messaged Mike and it got fixed (although, he didn't reply to me, so I don't know for sure). If it is a runtime error, it is pretty easy to debug — just see where the error is. This last contest I got a runtime error on 23th test case... (So I actually suspect that the solution is in fact correct and the judge was wrong again, but I have no way to check that). Here is the reference: http://codeforces.com/contest/155/submission/1225347 Can you point the error to me?
•  » » » 10 years ago, # ^ |   +9 bool[] on = new bool[10001]; There are 100000 colliders.
•  » » » » 10 years ago, # ^ |   +6 Ah! Thank you!
•  » » » 10 years ago, # ^ | ← Rev. 3 →   0 I met the same situation with you T_T.In case you get runtime error, you can generate some large testcases to check, I usually find my bug when I get runtime error by this way.And when I get WA and I don't know what's wrong in my algorithm, I copy a code of a accepted sol, generate testcase s and check =.= .Not viewing the full tests certainly gives some disadvantages for practicing, but I think codeforces team has their own reason :)
•  » » » » 10 years ago, # ^ |   0 I just don't get it... Maybe I am not smart enough, but what can possibly be a reason for not exposing the full tests?
 » 10 years ago, # |   +25 I think codeforces is human enough,for it can make short tests public.Some websites which are similar to codeforces don't promulgate any tests.
 » 7 years ago, # | ← Rev. 3 →   0 Hi, I am getting TLE in problem http://codeforces.com/contest/449/problem/B at last case only, while some other test cases which has larger inputs than the last one, got passed Reference to my solution is http://codeforces.com/contest/449/submission/7291622 Can somebody point the error to me?ThanksEdit: Got Accepted
 » 7 years ago, # |   +5 If problem is time limit you can create mashup contest which consists that problem and set time limit huge to see how fast your code.
 » 4 years ago, # |   0 You can get input size of few hundreds by printing the input as output in parts.
•  » » 4 years ago, # ^ | ← Rev. 3 →   -8 Sorry for my poor English.
•  » » » 4 years ago, # ^ |   -11 For example: int n; cin >> n; for(int i = 0; i < n; i++) { int x; cin >> x; cout << x << endl; } 
•  » » » » 4 years ago, # ^ |   0 :v hy lomeo
•  » » » » 9 months ago, # ^ |   0 You would have to get the rest of the tc's tho.... this wouldnt pass the first TC so its useless.
 » 17 months ago, # |   -6 Hi for[ https://codeforces.com/problemset/problem/143/A ] what is the wrong here[ https://ideone.com/pk8VRQ ]