HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Exhaustive search & Backtracking > problem:


50716 - All Palindromes

Guest
• Discussion of problem (1)

Section problems

• 50718 - Elevator
• 50472 - Minimum Sum Triangle
• 50593 - Transporter
• 50711 - Snail Trails
• 50306 - Beautiful Numbers
• 50720 - Permutations (2)
• 50707 - Rebus
• 50250 - The Knight
• 50716 - All Palindromes
• 50713 - Castle and the girls
• 50600 - Expression
• 50715 - Zero Sum

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