Блог пользователя AU25-Samurai

Автор AU25-Samurai, история, 6 часов назад, По-английски

Hey!

I am new to CP and I keep getting penalties for bad submissions during contests. In my last contest, I got 3, a heavy penalty... I know :/

It's usually a small thing that I missed before submitting (usually in the A and B problems) but I was wondering:

Do experienced CPs invest time in creating more test cases before submitting the code? any tips? ****

Sometimes creating test cases takes more than writing the solution. :/

Thxx

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
5 часов назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

It shouldn't take you more than a minute to create an additional test case locally and to run it. I don't always do it but sometimes I'm not sure I'm handling weird edge cases correctly so I create one or two.

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

    Were you always that fast?

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

      Well if the problem input is just an array, it's not that complicated to make an array of size 1 to see if your code runs well with arrays of size 1. I don't think I'm particularly "fast" in that regard.

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

        That is always something too check but in some observation problems there are sometimes possibity to miss some thing I feel and this improves as one practices. I am improving with that.