HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


50315 - Pig Latin

Guest
• Review clarifications (1)

Volume problems

• 002. 50428 - Three Times
• 010. 50582 - Number of digits
• 035. 50467 - Random Numbers
• 062. 50390 - Total Salary Paid
• 100. 50397 - The Number of Points ...
• 135. 50572 - Palindromic Numbers
• 145. 50586 - Prime Palindromes
• 160. 50571 - Armstrong Numbers - 2
• 50315 - Pig Latin
• 50353 - Cube of the Largest number
• 50296 - Total Discount Rate
• 50559 - Prime Factors of a Number
• 040. 50354 - Intersecting Rectangles
• 060. 50727 - Fibonacci Numbers
• 061. 50733 - The Highest Average
• 076. 50289 - Monthly Allowance
• 080. 50347 - Selling Oranges

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