View Code of Problem 3851

#include<iostream>
#include<string>
using namespace std;
int main(){
	string ss="qwertyuiop[asdfghjkl;zxcvbnm,";
	int t;
	cin>>t;
	while(t--){
		string pp;
		cin>>pp;
		for(int i=0;i<pp.size();i++){
			int n=ss.find(pp[i]);
			cout<<ss[n-1];
		}
		cout<<endl;
	}
}

Double click to view unformatted code.


Back to problem 3851