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

×

This is really frustrating codechef! :(

I have never got so many wrong answers but then this question came www.codechef.com/LTIME27/problems/CLOST on codechef(LTIME27).Still i am not able to find a test case where my code fails.Please someone find a test case for me..I have matched with all the test cases(in the first 2 pages) of the editorial page of this probelm and all those cases works fine in my code..Link to my code: https://www.codechef.com/viewsolution/7951755 To add fuel to the fire One solution from my college mate: https://www.codechef.com/viewplaintext/7956106 (accepetd by codechef) is giving wrong answer at 1 10 4 3 6 2 9 4 5 8 9 output: ((()()()()

while mine is giving correct answer (Wrong answer by codechef): 1 10 4 3 6 2 9 4 5 8 9 output: ()((()))()

Isn't this frustrating codechef?

Please someone find a test case where my code fails..(I have tried a lot).That will be really helpful codechef..

asked 31 Aug '15, 20:40

sandeep9's gravatar image

3★sandeep9
4782827
accept rate: 4%

edited 31 Oct '15, 15:11

admin's gravatar image

0★admin ♦♦
19.8k350498541


I second that. I went through an accepted solution which returns ()()() for 1 6 2 1 4 0 5 while the correct answer should have been (()()). The test cases are probably incorrect.

link

answered 31 Aug '15, 21:15

musicchamp's gravatar image

1★musicchamp
1
accept rate: 0%

i too agree with that. I got wrong answer for my submissions. While my friend's code was accepted which returns ()(()) for the following test case: n=6; k=3; {x,y}={1,2}{0,5},{3,4}. According to me, the correct answer should be (()())

link

answered 31 Aug '15, 21:34

agarwl96's gravatar image

3★agarwl96
11
accept rate: 0%

Hey, Easy test case may have one or more than one answer, so you cant judge based on the output.

link

answered 31 Aug '15, 21:37

theweblover007's gravatar image

2★theweblover007
10116
accept rate: 0%

Your code does not account for test cases where one of the query limits coincide: 1 10 3 0 9 1 2 1 4

link

answered 31 Aug '15, 21:46

sumeetshirgure's gravatar image

6★sumeetshirgure
611
accept rate: 0%

Your solution gives wrong answer for the test case:

1

6 2

1 2

1 4

The answer provided by your code is : (()))), which is wrong. One correct answer could be (()()). Another test case where your solution fails is:

1

12 2

3 6

5 10

Actually, the logic of your solution is wrong, please try to figure it out.

As far as the accepted wrong solutions are concerned, absence of some strong test cases is responsible for that. One of saddest realities is that the assessment can never be perfect. :( Lucky them!

link

answered 01 Sep '15, 16:43

snk967's gravatar image

4★snk967
1841110
accept rate: 9%

Your code fails most of the test Cases. I think Codechef has included some new testcases in Practice section in Clost.

link

answered 01 Sep '15, 19:37

suraj021's gravatar image

3★suraj021
91
accept rate: 0%

Actually while writing the code i thought that the query limits will not overlap!!

link

answered 01 Sep '15, 19:50

sandeep9's gravatar image

3★sandeep9
4782827
accept rate: 4%

edited 01 Sep '15, 19:53

My solution is giving correct answer in all above test cases .... but still is WA . Could anyone give some test cases in which it fails ?? My solution is https://www.codechef.com/viewsolution/7953083 Thanks in Advance :)

link

answered 01 Sep '15, 21:03

trojenguri's gravatar image

4★trojenguri
1
accept rate: 0%

Hi All,

We apologize for it, test cases of CLOST were weak. We have added strong test cases in practice session. We are really sorry for inconvenience.

link

answered 01 Sep '15, 22:26

dpraveen's gravatar image

4★dpraveen ♦♦
2.5k53136170
accept rate: 20%

CLOST editorial page is not opening for several hours!

(01 Sep '15, 22:35) snk9674★
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:

×752

question asked: 31 Aug '15, 20:40

question was seen: 2,466 times

last updated: 31 Oct '15, 15:11