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

×

week test cases in TAASEQ problem of sept cook-off

in taaseq of cook74 many solution were giving wrong answer on 1 4 2 3 6 10

https://www.codechef.com/viewsolution/11565871

@admin please update the test cases and rejudge all solution

asked 19 Sep '16, 00:44

anshuljain62's gravatar image

4★anshuljain62
1015
accept rate: 40%

edited 06 Oct '16, 15:43

admin's gravatar image

0★admin ♦♦
19.8k350498541


10

First of all, it is unethical to rejudge any solution after the contest is over (if not stated before the contest). There goes a lot of efforts by people to carefully generate the test cases to cover the whole domain. But still it is impossible for most of question to generate and test all possible case. And sometimes cases may be missed. In this case benefit goes to the user. So even if you really find a case where someones code is giving wrong answer, Codechef will and should avoid rejudging it. You can still point out the case if you found one but don't waste time to request for rejudging.

I misunderstood your case, So your case is:

1

4

2 3 6 10

and hence answer should be 3. I thought your case to be:

1

6

1 4 2 3 6 10

link

answered 19 Sep '16, 01:19

spinovations's gravatar image

5★spinovations
3113
accept rate: 60%

edited 19 Sep '16, 01:24

@spinovations you can check many accepted solution is giving ans 3.

(19 Sep '16, 01:28) anshuljain624★

I agree with @spinovations. Even my solution is one of those, which isn't complete and is giving WA in cases posted by someone on another Question. I too feel that what happened is wrong. However, rejudging of submissions AFTER the contest is equally bad, since those who submitted a bad solution won't get a chance to improve their algorithm. So, demanding for rejudging the submissions isn't the right thing to do. You have posted your problem, let CodeChef handle the rest. We all have been getting involved in their contests for quite a while, so let's have faith in what they do will be right.

link

answered 19 Sep '16, 01:50

utkarsh1997's gravatar image

4★utkarsh1997
77410
accept rate: 11%

edited 19 Sep '16, 01:53

Correctly quoted.

(19 Sep '16, 15:37) likecs6★

Atleast nothing can be done now, but to improve the experience of other users and yourself too, codechef has come up with a brilliant solution. Go through this blog: https://blog.codechef.com/2016/09/19/challenge-the-codechef-test-cases-with-udebug/

I ask everyone to contribute their bit towards it to make the experience of programming much better.

link

answered 19 Sep '16, 22:08

error_503_404's gravatar image

2★error_503_404
3107
accept rate: 5%

The expected answer is -1, right ?

link

answered 19 Sep '16, 00:50

akshayvenkat97's gravatar image

5★akshayvenkat97
1.1k416
accept rate: 0%

@akshayvenkat97 expected answer is 3 but this code is giving -1

(19 Sep '16, 00:53) anshuljain624★

how is the expected answer 3 ?

link

answered 19 Sep '16, 00:59

geek_geek's gravatar image

4★geek_geek
43914
accept rate: 16%

after removing 3 "2 6 10" is AP

(19 Sep '16, 01:12) anshuljain624★

Yes, my solution has also cleared all present test cases while it is giving WA on following test case: 1 4 2 3 6 10 My output : -1 Correct Output : 3 Because removing 3 from array will make it an AP sequence.

link

answered 19 Sep '16, 01:11

ujjwal_k23's gravatar image

3★ujjwal_k23
11
accept rate: 0%

edited 19 Sep '16, 01:25

i found many other solution also failing on similar test-cases

(19 Sep '16, 01:14) anshuljain624★
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:

×13

question asked: 19 Sep '16, 00:44

question was seen: 1,251 times

last updated: 06 Oct '16, 15:43