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

Обсуждение задачи 1002. Телефонные номера

I was trying to it in an clever way
Послано Mahilewets 6 июл 2017 09:43
I was trying to write TRIE for mnemonic words and DFS that tree with phone number.
And I have failed.
After that,  I wrote just 2-D dimensional dynamic programming solution.  DP[i] [j]  is minimal number of words to memorize substring [i;j].  And I got success.  Used Python.  Just input,  not stdin from sys.
Re: I was trying to it in an clever way
Послано Grandmaster 8 ноя 2017 04:09
i think you only need 1 array instead of dp[i,j]
Re: I was trying to it in an clever way
Послано Mahilewets Nikita 8 ноя 2017 22:28
So probably there is jury solution available on the internet
Re: I was trying to it in an clever way
Послано Mahilewets Nikita 8 ноя 2017 22:32
So I have examined jury solution
Looks too simple
Can't believe it is able to solve the problem
Re: I was trying to it in an clever way
Послано Grandmaster 11 ноя 2017 05:21
where do you find the jury solution?
Re: I was trying to it in an clever way
Послано Mahilewets Nikita 11 ноя 2017 22:14