标签:
简直水到爆炸的题目,还做了这么久,简直智商拯救无望:)
ac代码:
#include <cstdio> #include <cstring> using namespace std; char str[] = "`1234567890-=QWERTYUIOPP[]\\ASDFGHJKL;‘ZXCVBNM,./"; int main() { char c; while(scanf("%c", &c) != EOF){ int i; for (i = 0; str[i]&&str[i] != c; i++); if(str[i]) printf("%c",str[i - 1]); else printf("%c", c); } return 0; }
标签:
原文地址:http://www.cnblogs.com/MATLABlearning001/p/5572726.html