HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Strings > problem:


50307 - Palindromes

Guest
• Review clarifications (2)

Section problems

• 50503 - Welcome Andi - 2
• 50926 - School Mail Merge
• 50764 - Fast Typing Competition
• 50533 - Contacts List
• 50763 - Valid Password
• 50596 - Your Ride Is Here (USACO)
• 50596 - Your Ride Is Here (USACO)
• 50759 - Text Statistics
• 50307 - Palindromes
• 50769 - Arithmetic expression
• 50315 - Pig Latin
• 50409 - Random Password Generator
• 50323 - Filtering Contact List
• 50555 - Frequency of Letters
• 50655 - Divisibility by 9
• 50656 - Divisibility by 11
• 50767 - Censor

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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