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

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

paarth Getting WA #7 [4] // Задача 1297. Палиндромы 7 окт 2012 04:05
I have used manacher'a algorithm   and tried all the test cases discussed in these discussions and getting correct solution....
I have used manacher for even and odd palindromes separately and found the longest and if longest comes again... as in the same length..take the smaller start..
but now,... I got WA #7 ...I initially faced some problem in compilation too..please suggest some test case

P.S. : m doing while(getline(cin,string))  and also tried while(cin>>string)
is something to be done here...please suggest
paarth Re: Getting WA #7 [1] // Задача 1297. Палиндромы 7 окт 2012 04:27
Got AC...small error in code: basically typo :D
Andrew Sboev [USU] Re: Getting WA #7 // Задача 1297. Палиндромы 7 окт 2012 13:31
It's just bruteforce task.
[TDUweAI] daminus Re: Getting WA #7 // Задача 1297. Палиндромы 22 июл 2013 11:52
this test":

aaaa
runtime_error Re: Getting WA #7 // Задача 1297. Палиндромы 26 июл 2013 12:01
if string is like : abcdef
you can tranform it like: ^#a#b#c#d#e#f#$ so,even and odd palindromes all is transformed like odd palindromes.