ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Functions > задача:


50014 - Palindromes

Задачи сборника

• 50246 - Ascending Numbers
• 50247 - Descending Numbers
• 50248 - School Mail Merge
• 50250 - Shifting rows and columns
• 50251 - Sum of the Biggest Neighbors
• 50253 - Max Discount
• 50265 - Palindrome-k
• 50013 - John's Tasks
• 50014 - Palindromes
• 50060 - Total Salary Paid
• 50067 - The Number of Points in a ...
• 50087 - Three Times
• 50112 - Random Numbers
• 50156 - Armstrong Numbers - 2
• 50157 - Palindromic Numbers
• 50019 - Pig Latin
• 50054 - Sum of the given digits

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by Geri Gokaj. Сложность Альфа

Palindromes

A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward e.g EYE, or RACECAR.

Write a program to find longest palindrome in a given word.

Input specification
String with N characters where 1 ≤ N ≤ 50.

Output specification
The longest palindromic sub-string. If the length of the palindromic subsequence is 1 display ”No Palindromes”.

Sample Input I
Jefferson
Sample Input II
Janna
Sample Input III
Table
Sample Output I
effe
Sample Output II
anna
Sample Output III
No Palindromes


Для отправки решений необходимо выполнить вход.

www.contester.ru