poj 2538 WERTYU
2012-06-20 01:10
183 查看
#include <iostream> #include <string> using namespace std; string str = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"; int main() { string s; int i, len, j; while (getline(cin, s)){ len = s.length(); for (i = 0; i < len; i++){ if (s[i] == ' ') cout << s[i]; else{ for (j = 0; j < str.length(); j++) if (s[i] == str[j]){ cout << str[j-1]; break; } } } cout << endl; } system("pause"); }
相关文章推荐
- POJ 2538 WERTYU水的问题
- POJ 2538 WERTYU 模拟
- POJ 2538 WERTYU(水题)
- poj 2538 WERTYU
- poj 2538 WERTYU
- POJ 2538 WERTYU(我的水题之路——键盘错位)
- poj 2538 WERTYU
- zoj 1884 || poj 2538 WERTYU(这水让我很YM!)
- poj 2538 WERTYU
- POJ 2538 WERTYU(水~)
- POJ 2538 WERTYU(打错字符——制表)
- POJ 2538
- POJ-2538
- POJ_2538
- 算典03_例题_02_Poj-2538
- poj-2538
- POJ 2538 WERTYU G++
- pku 2538 WERTYU
- poj 2538(简单题)
- POJ 之 WERTYU