UVA-10082 WERTYU

 1 #include <iostream>
 2 #include <stdlib.h>
 3 #include <string>
 4 #include <vector>
 5 #include <algorithm>
 6 #include <string.h>
 7 #include <stack>
 8 #include <unordered_map>
 9 #include <math.h>
10 using namespace std;
11 
12 string keyBoardList {"`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"}; 
13 
14 int main()
15 {
16     char c;
17     while(~(c = getchar()))
18     {
19         int i;
20         for(i = 1;keyBoardList[i] && keyBoardList[i]!=c;i ++)
21             ;
22         if(keyBoardList[i])
23             cout << keyBoardList[i-1];
24         else
25             cout << c;
26     }
27     return 0;
28 }

 

posted @ 2018-09-05 09:00  Asurudo  阅读(163)  评论(0编辑  收藏  举报