#include <stdio.h> #include <string.h> using namespace std; int main(){ char s1[1000]; char s2[1000]; int T; scanf("%d", &T ); char c[] = "qwertyuiopasdfghjklzxcvbnm"; char c1[] ="wertyuiop[sdfghjkl;xcvbnm,"; while( T-- ){ scanf("%s", &s2 ); for( int i=0; i<strlen(s2); i++ ){ for( int j=0; j<strlen(c1); j++ ){ if( s2[i] == c1[j]){ printf("%c", c[j]); } } } printf("\n"); } return 0; } |
Double click to view unformatted code.