# (YKL14(UVA10222)) Decode the Mad man : YKL14_UVA10222_Decode_the_Mad_man.cpp ```cpp= #include <bits/stdc++.h> using namespace std; int main() { string talk; vector<string> keyboard = {"`1234567890-=", "qwertyuiop[]\'", "asdfghjkl;'", "zxcvbnm,./"}; while (getline(cin, talk)) { for (int i = 0; i < talk.length(); i++) { if (talk[i] >= 'A' && talk[i] <= 'Z') { // 先大寫換成小寫 talk[i] += 32; } for (int k = 0; k < 4; k++) { int isspace = 0; for (int j = 0; j < keyboard[k].length(); j++) { if (talk[i] == ' ') { cout << " "; isspace = 1; break; } else if (keyboard[k][j] == talk[i]) { cout << keyboard[k][j - 2]; break; } } if (isspace) { break; } } } cout << endl; } return 0; } ``` zero judge 沒過 測資不一樣 ... ![image](https://hackmd.io/_uploads/S1wjt6PCR.png) ![image](https://hackmd.io/_uploads/B1H_FTD0R.png)