ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Functions > задача:


50019 - Pig Latin

Задачи сборника

• 50013 - John's Tasks
• 50014 - Palindromes
• 50060 - Total Salary Paid
• 50067 - The Number of Points in a ...
• 50087 - Three Times
• 50112 - Random Numbers
• 50156 - Armstrong Numbers - 2
• 50157 - Palindromic Numbers
• 50019 - Pig Latin
• 50054 - Sum of the given digits
• 50063 - Palindromic Numbers
• 50075 - Random Password Generator
• 50152 - Prime Factors of a Number
• 50169 - Prime Factorization
• 50173 - Sum of prime numbers fro...
• 50175 - The Highest Average

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 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


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

www.contester.ru