UVa 10082
From Algorithmist
Contents |
[edit] 10082 - WERTYU
[edit] Summary
Help remedy a common mistake that beginning typists make by converting every key pressed to the key on its left.
[edit] Explanation
This is a very easy problem. Look at the picture of the keyboard in the page and make a conversion table that converts each key to the one on its left. According to the problem statement, keys with words (Tab, Backspace, Shift, etc.) and the keys at the far left of each row (Q, A, Z) are not in the input. Also, all letters are uppercase. Spaces are in the input; just echo them.
[edit] Gotcha's
- Be sure you don't mistype anything when you create your conversion table! Test carefully!
- Be careful of special characters; be sure to escape them!
[edit] Input
O S, GOMR YPFSU/ JPE STR UPI YJR WIOVL NTPEM GPC KI,[D PBRT YJR ;SXU FPH/ 1234567890-= WERTYUIOP[]\ SDFGHJKL;' XCVBNM,./
[edit] Output
I AM FINE TODAY. HOW ARE YOU THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. `1234567890- QWERTYUIOP[] ASDFGHJKL; ZXCVBNM,.

