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

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

Data is too weak!!
Послано CodeChomper 1 ноя 2010 16:10
Hello, administrator, I find this problem's data is too weak.Sometime before, I submitted my code to this problem, and got AC.Today, I sudden to realize my mistake, and I back to check my answer.Oh, my god, I had so stupid mistake.To my suprise, I had AC.So I think the problem's data is too weak.Please generate more strong input..
Re: Data is too weak!!
Послано Takamoto 8 фев 2011 07:07
Hi!

There seem to be many *accepted* solutions here that do not really try all possible combinations. These do *NOT* solve this problem, as some have pointed out correctly, this is a knapsack type of problem and unless going through all 2^n combinations of n numbers, you cannot find the optimal answer. It is clear, that the test data are too weak indeed!!!