UVa 10222 - Decode the Mad man
来源:互联网 发布:java 排序算法总结 编辑:程序博客网 时间:2024/05/20 05:57
题目:解码对应的字符串。
分析:简单题。通过观察每个字母是对应键盘上的左面的第二个,大写改成小写即可。
注意:其他的字符按原来样式输出,如格式控制和数字。
#include <iostream>#include <cstdlib>#include <cstdio>using namespace std;char temp[] = "qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";char maps[256],ch;int main(){for ( int i = 0 ; i < 128 ; ++ i )maps[i] = (char)i;for ( int i = 2 ; temp[i] ; ++ i )maps[temp[i]] = temp[i-2];while ( (ch = getchar()) != EOF ) {if ( ch >= 'A' && ch <= 'Z' )ch += 'a'-'A';printf("%c",maps[ch]);}return 0;}
- Uva 10222 - Decode the Mad man
- UVa 10222-Decode the Mad man
- UVa 10222 - Decode the Mad man
- UVa 10222 Decode the Mad man
- UVa 10785 The Mad
- UVA The Mad Numerologist
- The Mad Numerologist UVA
- uva 10785 The Mad Numerologist
- uva 10785 - The Mad Numerologist
- UVA 10785 - The Mad Numerologist
- Uva 10785 - The Mad Numerologist
- uva 10785The Mad Numerologist
- UVa 10785 - The Mad Numerologist
- UVA 10785 The Mad Numerologist
- UVA 10785 - The Mad Numerologist
- uva 10785 The Mad Numerologist
- UVa 10785 - The Mad Numerologist
- UVa:10785 - The Mad Numerologist
- 一 Django 1.5.4 入门
- Java关键字final、static使用总结
- 大学C语言程序
- Linux 重启weblogic服务器
- C++中*和&的使用
- UVa 10222 - Decode the Mad man
- 项目管理师——整合管理
- 茶籽
- proftp
- Python:字符编码详解
- 守护进程
- xargs 如何使用?
- 数据库基础
- zoj 3365