You are not logged in. Please login at www.codechef.com to post your questions!

×

Link to test cases after contests

Hello everyone !

It's a question for the admins, but i'd like to have a feedback from the codechef community as well.

Would you like to be able to see the test cases files and their expected outputs, only for contests, after the contest is finished ? For example, this material could be provided by a link on each contest problem page, or by downloadable content on the wiki editorials. I think it would be a great way to understand why a particuliar solution was rejected, for example.

Feel free to leave your comments here ! :) Thx.

asked 17 Mar '13, 01:20

cyberax's gravatar image

3★cyberax ♦
3.4k21955
accept rate: 20%

this would help us to know our fail cases....i also want this type of link

(17 Mar '13, 02:15) ajay1543★

Mate, I don't think this is at all a good idea. Revealing test cases would take out all the fun of coding. I myself recently spent nearly 30 incorrect submissions before getting a beautiful AC!!. If there ever is an option of revealing test cases, No one would bother more than 5 tries for any problem in practice section (Most people I'm talking about).

Though i would like that in case a problem has multiple approaches, editorials should explain as many as possible without adding much to the workload of Editorialist. Possiblly adding links to solutions from contest submissions.

link

answered 12 Nov, 19:14

taran_1407's gravatar image

6★taran_1407
1.3k216
accept rate: 17%

Hello,

This seems to be a never-ending discussion... Several posts regarding this subject were put up on discussion boards before and there were several opinions about this...

My opinion is that the test case files should remain hidden... This is because people can learn A LOT more from reading editorials and seeing other people's code instead of staring at two different output files and to their own bugged code.

Note that you can have WA for mainly two reasons here:

a) Overflow; b) Your logic is incorrect;

On either case having the test case files can prove useful, especially, because all main tricks and subtleties of the problem had already been discussed in detail, on the editorial... Comparing your code vs. tester/setter's code is a much more efficient way to learn that being provided with the test case files...

Especially because problems can have sometimes 10/15 files, if you think that each file as 100.000 test cases (for example) and your program fails on the last case of the last file, then what good are the test case files to you?

Please note, that all of this as already been discussed here and you can find more opinions on this topic.

Best regards,

Bruno

link

answered 17 Mar '13, 02:54

kuruma's gravatar image

2★kuruma
17.4k72143208
accept rate: 8%

Please note, that all of this as already been discussed here and you can find more opinions on this topic.

That's what i thought but couldn't find the older discussions, sorry about that.

Thanks for your opinion anyway.

(17 Mar '13, 15:44) cyberax ♦3★

You're welcome :)

Maybe you should consider e-mailing admins regarding this matter to obtain further feedback :)

(17 Mar '13, 16:23) kuruma2★

For a lot of people like me, on seeing WA people get curious to know which test cases they have missed. Keeping the test cases hidden forever doesn't give a chance to figure out the mistake in one's own code. Merely keeping the setter's and tester's solution, makes me feel like I should only think the way setter/tester thinks!

Looking for such a feature in CodeChef soon! :)

link

answered 11 Nov, 23:53

monni_suresh's gravatar image

2★monni_suresh
112
accept rate: 0%

edited 11 Nov, 23:54

It would be great !! really its frustating sometimes, when we are debugging like hell, and after getting an AC by using the correct approach,we don't know, why my previous approach failed !.

link

answered 12 Nov, 08:32

ricksr's gravatar image

3★ricksr
161
accept rate: 6%

"Why my previous approach failed"-That's for you to figure out.

(12 Nov, 09:32) nileshjha193★

i mean on which test cases, it failed :)

(12 Nov, 09:41) ricksr3★

I don't think it is a very good idea to do so because in real life you don't get to see test cases before you code. Seeing the test cases before coding a solution is something you don't want to do, the reason being when you do that what you are actually doing is coming up with a solution for the test cases you have seen and you don't put the effort that would help you grow in your competitive programming career.

Just an honest opinion! :) It may vary person to person!

link

answered 12 Nov, 12:48

pratyushjagaty's gravatar image

3★pratyushjagaty
11
accept rate: 0%

@cyberax I like your thinking but revealing test cases is not good for beginners (I'm totally agree with @taran_1407 ). I have an idea, like CodeChef shows test cases only when someone gets 10-20 WA on the same question. By doing this it will help to built aptitude of solving problems and learn new things.

link

answered 14 Nov, 22:36

codex0196's gravatar image

4★codex0196
412
accept rate: 0%

1

haha, 'give them power, and they shall misuse it'. There might be cases that people intentionally submit 20 times to get the test cases.. this will increase server load for no reason!

(14 Nov, 23:35) swetankmodi5★

@swetankmodi Yes you are right, but see if someone really want to learn they will try and who dont want to they can see others code and submit that.

(15 Nov, 15:37) codex01964★

I think there should be a provision of seeing the answer in exchange of some tokens that they will have to earn like karma(codechef.discuss) and hackos(hackerrank)

link

answered 15 Nov, 16:01

hardik3296's gravatar image

2★hardik3296
211
accept rate: 0%

1

Mate, your idea, though appears to be a good one, may cause two another serious problems.

First, This may can more fake id issues, ids made to upvote, gain reputation and thus, see test cases.

Second, It may give undue advantage to those who already have better reputation, which is clearly not fair.

PS:Don't try making codechef and 2nd Hackerrank, but First codechef. :)

Hope u didn't mind this. :)

(15 Nov, 21:08) taran_14076★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×715
×10

question asked: 17 Mar '13, 01:20

question was seen: 1,118 times

last updated: 15 Nov, 16:01