View Code of Problem 3851

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main (){
	int t;
	scanf("%d", &t);
	string str = "qwertyuiop[asdfghjkl;zxcvbnm,";
	while(t--){
		char s[105];
		scanf("%s", s);
		for(int i = 0;i < strlen(s);i++){
			for(int j = 0;j < str.size();j++){
				if(s[i]==str[j]) printf("%c", str[j-1]);
			}
		}
		printf("\n");
	} 

	return 0;
}

Double click to view unformatted code.


Back to problem 3851