|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||256 MB||34||12||11||44.000%|
Your job is to translate English phrases into Pig Latin. There are only two rules you need to know. First, for words beginning with a consonant or consonant cluster, you must cut off the consonant or consonant cluster, attach it to the end of the word, and add the letters “a” and “y” at the end of the word. Second, for words beginning with a vowel, you must simply add the letters “y”, “a”, and “y” at the end of the word. We will consider “y” to be a vowel for this problem. You may assume the words will consist of only lower case letters.
The size of each line will be no longer than 200 characters.
Your program must read a list of phrases from standard input (which is preceded by the number of phrases).
Translate the phrases into Pig Latin, and display the translation.
2 twist of fate hotter than the fourth of july
isttway ofyay atefay otterhay anthay ethay ourthfay ofyay ulyjay