#include<stdio.h> #include<string.h> main() { int t,n,i,j,m; char s2[100]; char s1[]="qwertyuiop[asdfghjkl;zxcvbnm,"; scanf("%d",&t); m=strlen(s1); while(t-->0) { scanf("%s",&s2); n=strlen(s2); for(i=0;i<n;i++) { for(j=0;j<m;j++) { if(s2[i]==s1[j]) printf("%c",s1[j-1]); } } printf("\n"); } return 0; } |
Double click to view unformatted code.