简直水到爆炸的题目,还做了这么久,简直智商拯救无望:)
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; }
时间: 2024-10-22 17:57:55