ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1005. Stone Pile

TEST Case #2 is wrong
Posted by Prasanna Kantal 21 Sep 2012 20:54
I have made two solutions.. 1st one was failing at test case#5 and second one was failing @test case#2.
Then I combined both and took the minimum out of both and in this case its again failing @test case#2.

If you analyse, 1st one was failing@ Test Case#5 so its answer was proper for Test case#2.
Now I took the minimum of 1st and 2nd solution and its again failing @Test case#2. That means my 2nd solution is giving minimal output than 1st one.

So I can say that the Test case#2 is wrong.
Re: TEST Case #2 is wrong
Posted by sysu2012zzp 12 Nov 2012 13:55
may be your 2nd solution is wrong although it luckily passes test1?
Re: TEST Case #2 is wrong
Posted by Bogatyr 12 Nov 2012 15:38
>  So I can say that the Test case#2 is wrong.

99.99% of all posts saying "test X is wrong" are wrong :).

Of course, if your WA2 code calculates a smaller value for test #2 than your WA5 code (which gets the correct answer for #2),  then your combination algorithm will yield the wrong result for test #2.