ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2060. Subpalindrome pairs

Please Help.
Posted by Spyro 11 Jul 2015 14:28
Sorry to blunt, but I don't understand the meaning of the task.
Explain what needs to be done.
Re: Please Help.
Posted by Mescheryakov_Kirill 11 Jul 2015 15:00
Examples of chewing the tasks:
abaa
1. i = 1, j = 1, k = 2; ' a ' and ' b ' palindromes
2. i = 1, j = 3, k = 4; ' aba ' and ' a ' palindromes
3. i = 2, j = 2, k = 3; ' b ' and ' a ' palindromes
4. i = 2, j = 2, k = 4; ' b ' and ' aa ' palindromes
5. i = 3, j = 3, k = 4; ' a ' and ' a ' palindromes

Russian text:
Разжевывание примера из задачи:
abaa
1. i=1, j=1, k=2; 'a' и 'b' палиндромы
2. i=1, j=3, k=4; 'aba' и 'a' палиндромы
3. i=2, j=2, k=3; 'b' и 'a' палиндромы
4. i=2, j=2, k=4; 'b' и 'aa' палиндромы
5. i=3, j=3, k=4; 'a' и 'a' палиндромы
Re: Please Help.
Posted by Adhambek 4 Nov 2015 11:26
you can use Manacher's algorithm.