#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; string s = "qwertyuiop[asdfghjkl;zxcvbnm,"; while(n--){ char a[110],c; scanf("%s",a); for(int i = 0;i<strlen(a);i++){ c = a[i]; for(int j = 0;j<s.length();j++){ if(s[j+1] == c)cout<<s[j]; } } cout<<endl; } return 0; } |
Double click to view unformatted code.