#C14014. Palindrome Checker
Palindrome Checker
Palindrome Checker
Given a string, determine whether it is a palindrome after normalizing the string. The normalization process involves converting all alphabetic characters to lowercase and ignoring all non-alphanumeric characters. A string is considered a palindrome if it reads the same backward as forward.
For example, the string "RaceCar" becomes "racecar" after normalization, and it is a palindrome. Even strings with punctuation and spaces, such as "A man, a plan, a canal, Panama", are considered palindromes once normalized.
The input is provided via stdin as a single line, and the output should be printed to stdout as either True or False (without quotes).
inputFormat
The input consists of a single line containing a string s
. The string may include letters, digits, spaces, and punctuation.
outputFormat
Output a single line with either True
or False
indicating whether the input string is a palindrome after normalization.
racecar
True