HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


50307 - Palindromes

Guest
• Review clarifications (2)

Volume problems

• 125. 50578 - Mersenne prime
• 132. 50474 - Sum of Two Primes
• 165. 50577 - Perfect Numbers and ...
• 190. 50533 - Contacts List
• 200. 50454 - What day is it?
• 210. 50369 - Base Conversion
• 250. 50385 - The 3n + 1 problem
• 260. 50493 - n-digit kth Prime Number
• 50307 - Palindromes
• 50305 - John's Tasks
• 002. 50428 - Three Times
• 010. 50582 - Number of digits
• 035. 50467 - Random Numbers
• 062. 50390 - Total Salary Paid
• 100. 50397 - The Number of Points ...
• 135. 50572 - Palindromic Numbers
• 145. 50586 - Prime Palindromes

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