文章
13
粉丝
386
获赞
2
访问
65.0k
#include<iostream>
#include<cstdio>
#include<string>
#include<map>
using namespace std;
int main(){
string s;
map<char, char> m;
m[' '] = ' ';
s = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
for(int i = 1; i < s.length(); i++)
m[s[i]] = s[i - 1];
while(getline(cin, s)){
for(int i = 0; i < s.length(); i++)
s[i] = m[s[i]];
cout << s << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发