Блог пользователя fiver

Автор fiver, 13 лет назад, По-английски

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
  • Проголосовать: не нравится

»
13 лет назад, # |
  Проголосовать: нравится 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.

  • »
    »
    13 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    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 лет назад, # ^ |
        Проголосовать: нравится +9 Проголосовать: не нравится
      bool[] on = new bool[10001];
      

      There are 100000 colliders.

    • »
      »
      »
      13 лет назад, # ^ |
      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 :)

      • »
        »
        »
        »
        13 лет назад, # ^ |
          Проголосовать: нравится 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?

»
13 лет назад, # |
  Проголосовать: нравится +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.

»
10 лет назад, # |
  Проголосовать: нравится +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.

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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