View Code of Problem 3851

#include<iostream>
#include<string>
using namespace std;
int main()
{
	string a="qwertyuiop[asdfgjkl;zxcvbnm,";
//	cout<<a<<endl;
	int i,T,pos;
	cin>>T;
	while(T--)
	{
		string sk;
		cin>>sk;
		for( i=0;i<sk.size();i++ )
		{
			pos=a.find(sk[i]);
			cout<<a[pos-1];
		}
		cout<<endl;
	}
}

Double click to view unformatted code.


Back to problem 3851