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:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.3.2, CPP 4.9.2, CS2, D, ERL, FORT, FS, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYTH, PYTH 3.4, RUBY, SCALA, SCM guile, SCM qobi, ST, TCL, TEXT, WSPC|
Fetching successful submissions