This content is archived!For the 2018-2019 school year, we have switched to using the WLMOJ judge for all MCPT related content. This is an archive of our old website and will not be updated.
After years of scanning the skies, humans have finally found evidence of extraterrestrial life. From a dark patch of the sky came an alien transmission - an attempt at contact. After months of painstaking analysis, it was determined that the aliens spoke two languages: Vibberish and Cibberish.
Vibberish is a smooth and simple language that mostly uses words that have more vowels than consonants. On the other hand, the difficult-to-pronounce Cibberish language prefers words with more consonants than vowels.
As the leading computer scientist at SETI, you have been tasked with detecting the language of a transmission. Given a sentence from the transmission, determine whether it is more likely to be Vibberish or Cibberish. (For our purposes, only a, e, i, o, and u are considered vowels).
Each test case contains one sentence of the alien transmission. The sentence will contain only lowercase letters and spaces.
For each test case, output
Vibberish if the text is most likely in Vibberish or
Cibberish if the text is most likely in Cibberish. If it is equally likely to be Vibberish or Cibberish, then output
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3
Explanation of Sample Output 1
All four words have more consonants than vowels, so it’s likely Cibberish.
Explanation of Sample Output 2
One word has mostly vowels and one word has mostly consonants, so it’s Gibberish.
Explanation of Sample Output 3
There is one word with a vowel majority and no words with a consonant majority, so it’s likely Vibberish.
Read only if you are stuck or have already solved the problem.