#include<bits/stdc++.h> using namespace std; int main() { string a="qwertyuiop[asdfghjkl;zxcvbnm,", b; int t; cin>>t; while (t--){ cin>>b; for (int i = 0; i < b.length(); ++i) { if (b[i]=='a'||b[i]=='q'||b[i]=='z'){ cout<<b[i]; } else{ for (int j = 0; j < a.length(); ++j) { if (b[i]==a[j]) cout<<a[j-1]; } } } cout<<endl; } return 0; } |
Double click to view unformatted code.