UVa10082 WERTYU

时间:2020-12-03 23:15:26

#include <stdio.h>
#include <string.h>

int main()
{ // 用C++提交AC
    char s[] = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
    int c;
    while ((c = getchar()) != EOF) {
        char* p = strchr(s+1, c);
        if (p) putchar(p[-1]);
        else putchar(c);
    }

return 0;
}