All submissions for this problem are available.
The GTUG on it's way to secure message communication has come up with another encoding technique in which they convert normal text to pig latin. You are required to build them a software which decodes the messages encoded in this pattern.
The first line of the data set for this problem is an integer that represents the number of sentences in the list. Each sentence is on a seperate line.
Punctuation is to be output in its original location. All letters are upper case. The output is to be formatted exactly like that for the sample output given below.
ASSUMPTIONS: All letters are Upper Cases.
DISCUSSION: To convert a word to Pig Latin, the first letter of the word was moved to the end(after the last letter of the word) and the letters "AY" were added.
For example IGPAY was originaly PIG.
Input: 2 HEREWAY ASWAY ALDOWAY? ELLOHAY,ARYWAY! Output: WHERE WAS WALDO? HELLO,WARY!
|Time Limit:||0.1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, JAVA, PYTH, PYTH 3.6, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, JAR, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, CLOJ, FS|
Fetching successful submissions