In this problem, we say that a word is cool if it does not have two consecutive consonants. Write a program to print all the cool words with lowercase letters, of which are vowels, that can be made up from the first letters of the alphabet.
For instance, these are some of the many cool words for , and :
aabab ababa babaa cecea deeac
Input consists of three natural numbers , , and .
Print, in alphabetic order, all the cool words with
lowercase letters,
of which are vowels, that can be made up from the
first lowercase letters. Assume that ‘y’ is a
consonant.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:09:16.294Z
© Jutge.org, 2006–2026.
https://jutge.org