3zim's blog

By 3zim, 21 month(s) ago, In English

Edit Note: I know long test case is important to determine if the complexity of the code fits or not. But why putting it in the second testcase it's better to put many test cases first that test the logic of the code then put the case of timelimit.

Before putting downvote explain why in comments, please.

In the last rounds while the contest I tried to solve problems got some accepted and couldn't solve the other some. That's normal soo normal.

So after the contest I go trying to upsolve the problems I couldn't solve. First I tried by myself then see the test cases and last thing is to see the editorial of the round. So when I saw the solution of editorial I been surprised with a different solution that has no connection with mine! So I don't know if my solution can get accepted or not!

This is really disappointing especially for beginners like me..

The testcase I talk about:

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

| Write comment?
»
21 month(s) ago, # |
  Vote: I like it +9 Vote: I do not like it

Yeah, this happens. But you have to learn (or get used to) how to write your own verifier. Just write a bruteforce method and check for small inputs that suit your needs.

  • »
    »
    21 month(s) ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    We are talking about stress test, aren't we? I already tried to do it, but I am not professional yet in this stuffs and I got destructed while randomizing the inputs.

    but I will try again thanks for the advice.

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

If you are interested in seeing the 5477th test case — you can put an if block for T and when T == 5477 you output needed array, however keep in mind that it might be too large.

  • »
    »
    21 month(s) ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I tried do that but the judge said the number of ones jury found is 6 and your answer is 0.

    Hah Judge

    • »
      »
      »
      21 month(s) ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I'm not completely sure but the 5477th test case may be something like this:

      6 2

      1 1 1 1 3 2

      • »
        »
        »
        »
        21 month(s) ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I did a stress test on my code and already found the wrong test case. but I just wander why Codforces just made us pass the hard way '-'