HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Winner's Camp > problem:


09. 50716 - All Palindromes

Guest
• Discussion of problem (1)

Volume problems

• 01. 50722 - Scientist's problem
• 02. 50376 - Sequences
• 03. 50673 - DNA Testing
• 04. 50649 - Puzzle
• 05. 50713 - Castle and the girls
• 06. 50714 - The knight
• 07. 50715 - Zero Sum
• 08. 50370 - Number of rectangles in ...
• 09. 50716 - All Palindromes
• 10. 50475 - Voice advertising
• 11. 50476 - Meditation
• 12. 50723 - Tribonacci

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: Ilir Capuni. Difficulty Beta

All palindromes

Write a program that reads a string from the console and prints all substrings that are palindromes. Recall that a string is palindrome if it is read the same from the both sides.

Test case

Input:
radar

Output:
r
radar
a
ada
d
a
r

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

www.contester.ru