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