HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


50315 - Pig Latin

Guest
• Review clarifications (1)

Volume problems

• 50862 - Sum of the Pairs
• 50904 - Print All Prime Numbers
• 50307 - Palindromes
• 50305 - John's Tasks
• 50315 - Pig Latin
• 50911 - Symmetric Array
• 50296 - Total Discount Rate
• 50935 - Max Discount
• 50851 - Repeated Numbers
• 50838 - Balanced Numbers
• 50724 - Number of Circles
• 50916 - Ascending Numbers
• 50926 - School Mail Merge

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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


Для отправки решений необходимо выполнить вход.

www.contester.ru