[UVA] 11201 - The problem of the crazy linguist
The Problem of
the Crazy Linguist
Background
Please, help the crazy linguist! He is trapped in his madness. He has developed a
``Spanish Beauty Criterion'' for words. It is defined as follows. Given a word w
(where n is the...