HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Strings > problem:


50315 - Pig Latin

Guest
• Review clarifications (1)

Section problems

• 50764 - Fast Typing Competition
• 50533 - Contacts List
• 50763 - Valid Password
• 50596 - Your Ride Is Here (USACO)
• 50596 - Your Ride Is Here (USACO)
• 50759 - Text Statistics
• 50307 - Palindromes
• 50769 - Arithmetic expression
• 50315 - Pig Latin
• 50409 - Random Password Generator
• 50323 - Filtering Contact List
• 50555 - Frequency of Letters
• 50655 - Divisibility by 9
• 50656 - Divisibility by 11
• 50767 - Censor
• 50762 - Rare name
• 50760 - Hexatridecimal Sum

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