您的位置:首页 > 其它

UVa 10082 WERTYU

2016-11-27 11:21 323 查看
//#include <iostream>
//#include <iomanip>
#include <cstdio>
#include <cmath>
//using namespace std;
const char s[] = "`1234567890-=QWERTYUIOP[]\ASDFGHJKL;'ZXCVBNM,./";

int main() {
//ios::sync_with_stdio(false);
//FILE *f = fopen("in.txt", "r");
char c;
int i;
while((c = getchar()) != EOF) {
for(i = 1; s[i] && s[i] != c; i++);
if(s[i]) printf("%c", s[i - 1]); else printf("%c", c);
}

//fclose(f);
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: