Diagnostic Test 2016 Level 1

Problem 3: Faxen Words

Even types of words are rather different in Croneria. A noun to them is a word that starts with a capital letter that isn't a vowel. A verb to them is a word that starts with a capital letter that is a vowel. An adjective is a word that does not start with a capital letter.

The way they classify words is weird too. A word is an odd adjective if it's an adjective and its third character is a consonant. A word is a fancy noun if it's a noun and its fourth character is a vowel. A word is a boring verb if it's a verb and its fifth character is either 'x', 'y', 'z', or 'q'.

As per usual, the students have turned to you for help. Given a word that is guaranteed to be at least 5 characters, output what word types the word is.

Sample Input

Chemistry

Sample Output

noun

Sample Input

Screaming

Sample Output

noun
fancy noun

Sample Input

abcde

Sample Output

adjective
odd adjective

All Submissions
Best Solutions


Point Value: 5
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 13, 2016
Authors: Geerthan, imaxblue

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

why, another system error?
i tried so many times, everytime it gives me WA, but in reality its right!
jargon please fix this

thats for the first 3, but the last three are errors on my part

Just to clarify, do we consider the letter 'y' as a vowel?