fiver's blog

By fiver, 13 years ago, In English

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

  • Vote: I like it
  • -7
  • Vote: I do not like it

| Write comment?
»
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It is not possible. And, in my opinion, is is useless. I really do not understand how are you going to debug large test.

  • »
    »
    13 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Not exactly...

    There can be several reasons:

    1. If it is time limit, you can see how off you are and try different optimizations.
    2. 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).
    3. 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.net/contest/155/submission/1225347 Can you point the error to me?

    • »
      »
      »
      13 years ago, # ^ |
        Vote: I like it +9 Vote: I do not like it
      bool[] on = new bool[10001];
      

      There are 100000 colliders.

    • »
      »
      »
      13 years ago, # ^ |
      Rev. 3   Vote: I like it 0 Vote: I do not like it

      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 :)

      • »
        »
        »
        »
        13 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        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?

»
13 years ago, # |
  Vote: I like it +25 Vote: I do not like it

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.

»
10 years ago, # |
  Vote: I like it +5 Vote: I do not like it

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.

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You can get input size of few hundreds by printing the input as output in parts.