[UVA] 10945 - Mother bear
Problem C: Mother Bear
Unforunately for our lazy "heroes", the nuts were planted by an evil bear known as.. Dave,
and they've fallen right into
his trap. Dave is not just any bear, he's a talking bear, but he can
only understand sentences that are palindromes. While...