跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F0505. Problem C: WERTYU

    ID: 511 传统题 1000ms 128MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>待分类整理状态难度待定难度共享题库高校与竞赛共享题英文题面题目来源题面语言

Problem C: WERTYU

题目描述

Problem C: WERTYU

A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to decode a message typed in this manner.

Input consists of several lines of text. Each line may contain digits, spaces, upper case letters (except Q, A, Z), or punctuation shown above [except back-quote (`)]. Keys labelled with words [Tab, BackSp, Control, etc.] are not represented in the input. You are to replace each letter or punctuation symbol by the one immediately to its left on the QWERTY keyboard shown above. Spaces in the input should be echoed in the output.

样例 1

输入

O S, GOMR YPFSU/

输出

I AM FINE TODAY.

题目来源:fps-zhblue-waterloo-010127.xml;FPS 共享题包,题包内第 3 题。保留原作者与原赛事署名。