现在的位置: 首页 > 综合 > 正文

FZU 1343 WERTYU

2013年12月04日 ⁄ 综合 ⁄ 共 3271字 ⁄ 字号 评论关闭

 

WERTYU


Time Limit:1s Memory limit:32M
Accepted Submit:257 Total Submit:526

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.

Sample Input

O S, GOMR YPFSU/

Output for Sample Input

I AM FINE TODAY.

Original: Waterloo 010127

 

解题:

        继续使用map容器,建立一一对应表。若在表中找到,即改为相应的值。

抱歉!评论已关闭.