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

Обсуждение задачи 1297. Палиндромы

WA #14
Послано MatrixDeity 14 ноя 2017 21:05
Hi, everyone!
I used Manacher's algorithm to solve this problem, but I got WA on #14 test. Can someone hint me, what could be the problem?
Re: WA #14
Послано Mahilewets Nikita 15 ноя 2017 09:29
It could be buggy implementation
If just want to solve then you could do it with native algorithm, time limit is enough even for python
Re: WA #14
Послано Mahilewets Nikita 15 ноя 2017 09:30
Also my implementation of Manacher failed at test 5
And I decided to use naive
Re: WA #14
Послано MatrixDeity 15 ноя 2017 21:04
Mahilewets Nikita, thanks you for your answer!
I thought about the native solution already, but I want to solve it with Manacher's algorithm only. It is needed for increasing of my skills :)

If someone has 14th test post it, please!
Re: WA #14
Послано MatrixDeity 18 ноя 2017 00:56
OMG, I found my mistake :) This test was useful to me: 'babadada'. Right answer is 'adada' (not 'abada').

P.s. There is same problem at Codeleet. You may peek some test there :)