#include<iostream> using namespace std; char ch1[100] = "qwertyuiopasdfghjklzxcvbnm"; char ch2[100] = "wertyuiop[sdfghjkl;xcvbnm,"; int main() { int t; cin>>t; while(t--){ string s; cin>>s; for(int i = 0; i < s.length(); i++) { for(int j = 0; j < 26; j++) { if(ch2[j] == s[i]) { cout<<ch1[j]; } } } cout<<endl; } return 0; } |
Double click to view unformatted code.