All submissions for this problem are available.
A Keyboard manufacturing company, built some faulty qwerty keyboards. As soon as they realized that some of the keyboards are faulty they tried to develop a software to correct them but their developers are noobs so they ask you to develop the software for them.
The issue with the keyboard is that the key placement is not appropriate. The keys of the right hand are faulty.
When the user press j it appears h. Similarly when you press h it appears as ;(semi-colon), y → p, b → .(full stop).
- The first line contains an integer T, total number of test cases.
- Each of the next T lines contain a sentence S(containing only lower-case english alphabets and valid characters as described) printed by the faulty keyboard.
For each test case print the correct sentence the user wants to type in a new line.
- 1 ≤ T ≤ 100
- 1 ≤ |S| ≤ 105
Input: 3 ;ekki wirkd cidec;ef origrannubg Output: hello world codechef programming
For first test case ; replaces with h, k replaces with l, i replaces with o, the final output is hello world.N. B.
- All special character key except ;(semi-colon), .(full stop) and ,(comma) have their approperiate place.
- yuiop hjkl; bnm,. these keys comes under right hand placement.
|Tags||ad-hoc, apamit11, apamit11, horsbug98, programming|
|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