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

Обсуждение задачи 1009. K-ичные числа

Why is this problem DP?
Послано Grandmaster 16 мар 2016 01:17
i solved this by using Optimized backtracking and i don't understand why it needs DP?
Re: Why is this problem DP?
Послано IlushaMax 1 апр 2016 16:17
I've done with DP in 0.001 sec
It's very difficult to explain how you can get this formula. Maybe you'll understand :
Just it necessary to know how many new numbers you can get with knowing that numbers having 0 in the end give less than numbers having any another digit in the end.
Sorry if I have some mistakes in it.
Re: Why is this problem DP?
Послано Grandmaster 3 апр 2016 01:18
I have solved it both ways with DP and BackTracking, my question is aren't limits to easy to pass?