Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Prepared by Halil Karimis.
Pig Latin
Question:
Write a program that reads a sentence as input and
converts each word to Pig Latin. In one version,
to convert a word to Pig Latin you remove the
first letter and place that letter to the end
of the word. Then you append the string
"AY" to the word.
Input specification
You will have one line of text containing only spaces
and English uppercase letters. And, there will
be at most 10 words in the line.
Output specification
Show one line of Pig Latin sentence.
Sample Run I
GOOD LUCK
Sample Output I
OODGAY UCKLAY
|
Sample Input II
I SLEPT MOST OF THE NIGHT
Sample Output II
IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY
|
Для отправки решений необходимо выполнить вход.
|