#include<stdio.h> #include<math.h> #include<string.h> //#include<algorithm> #include <bits/stdc++.h> using namespace std; int main() { char str[1000]="qwertyuiop[asdfghjkl;zxcvbnm,"; int T; scanf("%d",&T); while(T--) { char temp[101]; scanf("%s",temp); for(int i=0; i<strlen(temp); i++) { for(int j=0; j<strlen(str); j++) { if(temp[i]==str[j]) { printf("%c",str[j-1]); break; } } } printf("\n"); } } |
Double click to view unformatted code.