UVa 10945

From Algorithmist
Jump to navigation Jump to search

10945 - Mother bear[edit]

Summary[edit]

This is an easy problem that basically requires you to strip the non-alphabet characters, and ignoring case, see if it's a palindrome.

Explanation[edit]

No explanations needed. Just delete the characters that aren't from [A-Z], and use a consistent case, and it should be trivial.

Input[edit]

Madam, Im adam!
Roma tibi subito motibus ibit amor.
Me so hungry!
Si nummi immunis
DONE

Output[edit]

You won't be eaten!
You won't be eaten!
Uh oh..
You won't be eaten!