~cpp // no10082 - WERTYU #include <iostream> #include <cstring> using namespace std; int main() { char diction[] = "`1234567890-=QWERTYUIOP[] ASDFGHJKL;'ZXCVBNM,./"; diction[25] = 92; // ASCII 92 IS '' char str[256]; int i, j; int len_dic, len_str; len_dic = strlen(diction); while (cin.getline(str, 256, '\n')) { len_str = strlen(str); for (i=0; i<len_str; i++) { if (str[i] == ' ') continue; for (j=0; j<len_dic; j++) { if (str[i] == diction[j]) { str[i] = diction[j-1]; break; } } } cout << str << endl; } return 0; }