#include <bits/stdc++.h> using namespace std; int main() { int t; string a; string map = "qwertyuiop[asdfghjkl;zxcvbnm,"; cin >> t; while (t--) { cin >> a; for (int i = 0; i < a.size(); ++i) { int pos = map.find(a[i]); cout << map[pos-1]; } cout << endl; } } |
Double click to view unformatted code.