ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1005. Куча камней

New test
Послано Pavel Atnashev 28 сен 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
Послано Human I Being 28 сен 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
Послано Grichenko 29 сен 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 (+)
Послано Grichenko 29 сен 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. :(