×

Test Cases for Contest Problems can be revealed after the contest!

 39 6 There are many people whose solution fails for few test cases and hence get partially correct answers in the contest. For Ex: Many people have got 85 points in LIGHTHSE and 60 points in REBXOR in the September Long Contest which means they have all failed to pass the 1st Subtask which might have contained some special/boundary cases. To help people know their mistakes Codechef can post the Test Cases along with the editorial as people will be able to identify the mistakes in their own code which will be of great help. Please upvote if you feel this is good idea! :) @admin : Let us know your opinion too. asked 14 Sep '15, 17:37 4★kay_kay 1.2k●7●21 accept rate: 20% @admin Any update on this? :( :? (12 Oct '15, 19:13) vsp46★ @vsp4 : The admin has said that they will have to discuss more on this topic. (21 Oct '15, 19:16) kay_kay4★ 5 Suggestion - They can adopt the system of codeforces in which we can see the testcase which fails to pass. (22 Oct '15, 16:36)

 8 This is really a great idea as we will be able to solve the problem in our own way instead of following approach given in the editorial. answered 14 Sep '15, 21:06 86●2 accept rate: 100%
 8 Yep. Should be done once the contest is over and problems are moved to practice section. This was one of the reason why i practice more on codeforces then codechef. Its better to know where your code is failing rather then giving up and following editorial solution atlast. answered 14 Sep '15, 22:24 6★vsp4 1.2k●1●3●8 accept rate: 28%
 4 When i face such problems like only one subtask showing WA after going through common mistakes like not using long int, parsing to wrong data type, dealing with garbage values etc etc... I always write a brute-force solution and use a python script to generate random test cases and execute both the solutions simultaneously and wait and pray :P for the script to throw up the relevant test case. Here is the script i use mostly import random import os #program to generate random test cases #and find the failed test case of the solution using brute force solution #generate random test cases def generate(): strs="" N=1 strs+=str(N)+"\n" for i in range(0,N): strs+=str(random.randint(1,100))+"\n" return strs for i in range(0,100): strs=generate() p=open("inps12.txt","w") p.write(strs) p.close() proc=os.popen('bruteSolution.exe
 4 I am requesting codechef to please provide test case of practice problem. otherwise user will start moving to hackerearth,codeforce,hackerrank type of site where they provide test case of practice problem. It is very important part of programming to know where are the mistakes. when you know the mistakes then only you can grow/progress otherwise there is no point of solving question on codechef. answered 02 Nov '16, 20:01 2★akshay29 89●4 accept rate: 0%
 3 Yes , it is a great idea. Test cases should be provided ,it will benefit us all. answered 14 Sep '15, 20:54 41●3 accept rate: 0%
 3 I dont think its a good idea at all. New programmers tend not to put their brains in the problem when presented with solution or tricky test cases. This has alot of disadvantages, and if they do that, they will never be able to change a WA into AC in a live contest. This happens in topcoder practice rooms all the time. Again, If you are stuck, you must see solutions of other coders and compare them to your own, check for overflows. Thats how you learn. answered 22 Oct '15, 22:39 101●1●6 accept rate: 0%
 2 Great suggestion ... please do consider this @admin... answered 14 Sep '15, 20:46 221●6 accept rate: 0%
 2 Yes the test case should be provided otherwise we don't get to know where our program is failing. answered 14 Sep '15, 23:15 31●3 accept rate: 0%
 2 Good idea. answered 15 Sep '15, 18:23 21●1 accept rate: 0%
 2 I think its good to provide test cases after the contests get over, if you are cheating,then you are cheating to yourself only. answered 12 Oct '15, 21:18 87●2●7 accept rate: 0%
 2 @admin i agree with this opinion at least the case at which our solution fails should be available. And especially for practice problems. At times it become really difficult to learn as a beginner and instead of finding my own mistake i have to follow editorial's approach or check someone's solution. answered 02 Nov '16, 21:44 537●1●8 accept rate: 27%
 1 Giving testcases has its downfalls. People intending to practice later on could cheat. Rather gve testcases to only those who pass certain testcases. And also use the 'hackos' system that hackerrank uses. answered 14 Sep '15, 21:52 226●2●9 accept rate: 9% 2 Some people cheat even now by submitting other's solution as they can see everyone's solution in practice. So, nothing can be done with them. Giving test cases will help people who really want to solve problems on their own. (14 Sep '15, 22:06) kay_kay4★ 1 Yeah, but the hackos system would be great. There should be a limit to the number of questions you can ask test cases for. (14 Sep '15, 22:12) 1 "People intending to practice later on could cheat" Cheat whom? They would only cheat themselves and will not learn. That won't be a problem for anybody else, so I don't see why giving out test cases has downfalls. (22 Oct '15, 19:19)
 1 Not in favour, strongly disagree. answered 12 Oct '15, 20:57 72●3 accept rate: 9%
 1 Yes, this is a great idea.... We can even know how large the inputs can be, how our solution is tested , how the author sets boundary cases, and hence we can understand the problem completely! answered 22 Oct '15, 17:25 136●1●5 accept rate: 20%
 1 Good idea! ,test cases should be given so that without wasting much time on same problem we can quickly learn from our mistakes and proceed to next question because sometimes it happens that even after giving lot of time we are not able to figure out one silly mistake. So thumbs up for this idea. answered 22 Oct '15, 20:16 41●3 accept rate: 0%
 0 I agree with you. Codeforces has this system, Codechef can also have it. Admin said that they are changing their whole contest hosting procedure, they might add this feature. answered 24 Nov '16, 15:22 2.6k●1●10●34 accept rate: 7%
 0 The question title made me think that CodeChef actual did this. answered 19 May '17, 00:36 3★theintel 47●10 accept rate: 0%
 0 can you give me more test cases for SAMESNAK problem in Snakdown 2017? answered 24 May '17, 13:37 1 accept rate: 0% 1 Not allowed. The contest is STILL on going. (24 May '17, 13:48)
 0 ya its very important sometimes i got WA in two test cases and when i ask my friend who codes the same logic in python he got AC so in such cases giving test cases is most important. answered 24 May '17, 14:43 3★ayush201 61 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×15,852
×1,424
×365

question asked: 14 Sep '15, 17:37

question was seen: 4,911 times

last updated: 24 May '17, 14:43