UVa 10082

From Algorithmist
Jump to: navigation, search

10082 - WERTYU[edit]

Summary[edit]

Help remedy a common mistake that beginning typists make by converting every key pressed to the key on its left.

Explanation[edit]

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.

Gotcha's[edit]

  • 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!

Input[edit]

O S, GOMR YPFSU/  JPE STR UPI
YJR WIOVL NTPEM GPC KI,[D PBRT YJR ;SXU FPH/
1234567890-=
WERTYUIOP[]\
SDFGHJKL;'
XCVBNM,./

Output[edit]

I AM FINE TODAY.  HOW ARE YOU
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.
`1234567890-
QWERTYUIOP[]
ASDFGHJKL;
ZXCVBNM,.

Solutions[edit]