Rahul and his encryption
All submissions for this problem are available.
Rahul wants to encode lower case alphabet in to special symbol . in such a way that ‘)’ for a , ‘!’ for b , ‘@’ for c. The pattern repeats after j ie ‘)’ for k, ‘!’ for l, and t ie ’)’ for u and so on. You can also see on your numeric symbol 0 to 9. Rahul is given a string , please help him to encode lower case alphabet in to special symbol.
- The first line of input contains T, the number of test cases, the next T lines contain one string each.
- Print a single containing the encoded string For each test case.
- 1 ≤ T ≤ 10
- 1 ≤ length of string ≤ 100
Input: 2 abcd rahul Output: )!@# &)&)!
|Time Limit:||1 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, TCL, kotlin, PERL6, TEXT, SCM chicken, CLOJ, COB, FS|
Fetching successful submissions