DWITE '07 R1 #3 - Where's my QWERTY?

View as PDF

Submit solution

Points: 4
Time limit: 2.0s
Memory limit: 64M

Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig
DWITE Online Computer Programming Contest, October 2007, Problem 3

The Dvorak Simplified Keyboard is a keyboard layout patented in 1936 by Dr. August Dvorak, an educational psychologist and professor of education at the University of Washington in Seattle as an alternative to the more common QWERTY layout.

If someone was to have Dvorak enabled on their computer, and a guest was to start typing, expecting the standard QWERTY layout - text will come out as nonsense. You are to write a program to de-scramble any such message.

The input will contain a single line of text, made up of any of the letters, numbers, and symbols found on a typical keyboard. There will be less than 256 characters in the line, and it will not end in a space.

The output will contain a single translated line of text.

Sample Input

D.nnr <rpne!

Sample Output

Hello World!

Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Problem Resource: DWITE


Comments


  • 0
    Dan13llljws  commented on Jan. 17, 2020, 2:21 a.m.

    bruce does all the homework problems he gives except for this one.


  • 3
    Aaeria  commented on Jan. 16, 2020, 1:27 p.m.

    !Q#$%&q()*}w'e[0123456789ZzW]E{@ANIHDYUJGCVPMLSRXO:KF><BT?-\=^\"`anihdyujgcvpmlsrxo;kf.,bt/_|+~


    • 4
      leonzalion  commented on Jan. 16, 2020, 10:03 p.m.

      `1234567890[]',.pyfgcrl/=\\aoeuidhtns-;[email protected]#$%^&*(){}\"<>PYFGCRL?+|AOEUIDHTNS_:QJKXBMWVZ

      `1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./[email protected]#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?

      Easy when you actually use DVORAK


      • -1
        narwhalblast  commented on May 5, 2020, 11:00 a.m.

        us dvorak users are very underrepresented :pensive: