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

Автор adviser, история, 5 лет назад, По-английски

As we all know codechef does not allow anyone to see testcases because they think it will spoil the fun of thinking extra bit. but i think that even after trying 2-3 hour if one is stuck and does not know where it is going wrong one should see the testcase because though editorial are avaible but for practice one need to know why his/her code is not working or where it is going wrong. because of testcases many people do not practice on codechef.

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

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +69 Проголосовать: не нравится

IMO seeing the test cases is often largely useless given that often, your code fails on some huge test case that is largely useless for debugging. Many problems also have thousands of test cases in a single file and it's often the case that your code fails on a test case very far down.

Instead, I can recommend to everyone the vastly superior method of stress-testing. Try the following:

  • Write a very naive and simple solution to the problem (maybe exponential complexity) (if you can, you may also just copy someone else's solution: CodeChef readily allows you to do this)
  • Write a program to generate thousands of small (!) test cases
  • Using those two, find a test case where your program gives the wrong answer.
»
5 лет назад, скрыть # |
 
Проголосовать: нравится -17 Проголосовать: не нравится

If testcases are publicly available, then problems can be easily stolen by the other competitive programming platforms. One could create a clone of CodeChef without putting too much effort into it. That's probably the main reason why competitive programming platforms are not very eager to make their testcases available.

Where do these people practice? Codeforces does not allow to see its full set of testcases either.

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

    i don't mean that all testcases should be available in file. even codeforces concept of not showing large testcases is right. but codechef does not even allow to see small testcases. what if someone like me is only missing some edge cases? so it would be good if codechef does same that codeforces do.

»
5 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

They have already talked about this problem before on their site and have a strong viewpoint about it, so I believed that they won't change it no matter what.

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

Inclusive of test case visibility , I think Codechef should also look into the issue of Plagiarism quite seriously . Yesterday I did a contest after a long time , but again I saw the same issue that the successful submissions of the questions C & D increased drastically in the last few minutes and even I noticed a guy whose all 4 questions which he solved were of different kind (Different way of writing for loops n so many things...). I think this is a major thing to be looked at.