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

New test
Posted by Pavel Atnashev 28 Sep 2000 14:00
We have added new test to problem 1005. We do not want to
rejudge your submits. If you want, you can resubmit it to
make sure you solve it right.
A problem with submitting
Posted by Human I Being 28 Sep 2000 22:00
I think there is a problem with this 1005. I have tried a
lot of test cases randomly generated by another program and
it works well. But, when I try to submit it, it says "Wrong
answer". Please see to it.
Thank you
Re: A problem with submitting
Posted by Grichenko 29 Sep 2000 12:43
I've tried a lot of test inputs also and it worked OK,
but then I've found a couple of examples when my
method does not work. I suppose your algorythm is
similar to my one. :)) Try to change it.
Try this (+)
Posted by Grichenko 29 Sep 2000 13:00
One of the "bad" examples is
5
16 13 7 6 4

The correct answer here is 0 (16+7=13+6+4). My first program
told the minimum is 2. :(