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

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

Has anyone solve this by dynamic programming?
Послано phizaz 5 апр 2011 22:54
please tell me how do you?
I found one algo but it uses memory equal to W<sub>i</sub> limitation. if maximum of W<sub>i</sub> is 100000 it uses 100000 too. Maybe it use 2 times more.

Edited by author 05.04.2011 22:59
Re: Has anyone solve this by dynamic programming?
Послано Bahador Biglari 12 дек 2011 21:13
Hey, did you solve it with DP ? Please let me know how did you solve it ?

Thanks
Re: Has anyone solve this by dynamic programming?
Послано morbidel 12 дек 2011 22:50
Hello,
Read about the knapsack problem (http://en.wikipedia.org/wiki/Knapsack_problem#Dynamic_programming_solution) which can be solved with DP and try to figure out how it can be applied here. Good luck!