HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Strings > problem:


50315 - Pig Latin

Guest
• Review clarifications (1)

Section problems

• 50908 - Buy 1 Get 1
• 50761 - Magic Words
• 50760 - Hexatridecimal Sum
• 50759 - Text Statistics
• 50246 - Making Potions
• 50258 - String manipulations
• 50264 - String Multiplication
• 50307 - Palindromes
• 50315 - Pig Latin
• 50484 - Number Of Letters
• 50323 - Filtering Contact List
• 50409 - Random Password Generator
• 50763 - Valid Password
• 50429 - Secret Message
• 50511 - Class Average
• 50502 - Welcome Andi - 1
• 50503 - Welcome Andi - 2

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