View Code of Problem 3851

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s="qwertyuiop[asdfghjkl;zxcvbnm,";
	int n;
	cin>>n;
	string t;
	for(int i=0;i<n;i++){
		cin>>t;
		for(int j=0;j<t.size();j++){
			cout<<s[s.find(t[j])-1];
		}
		cout<<endl;
	}
	
}

Double click to view unformatted code.


Back to problem 3851