All submissions for this problem are available.
A scientist had two large jars before him as if they are mirror image to each other on the laboratory table. The jar on his left contained a hundred fleas; the jar on his right was empty. The scientist carefully lifted a flea from the jar on the left, placed the flea on the table between the two jars, stepped back and in a loud voice said, "Jump." The flea jumped and was put in the jar on the right. In the same manner, the scientist treated second flea but this time have to said "jump" twice .similarly for third he said "jump jump jump".
Each line of input consists of a string (each of length < 9 digits) to be tested. when 0 is encountered as input program terminates
Ouput consists of a modified string for each input string.
Input: ravi SaHil AakasH AranyA chunky raj 0 Output: iagu HaUus ZarclX ZjbpfE xthptg ias
|Time Limit:||1.24138 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.