View Code of Problem 3851

#include <iostream>
using namespace std;
//char a[30]={'s','n','v','f','r','g','h','j','o','k','l',';',',','m','p','[','w','t','d','y','i','b','e','c','u','x'};
string a="snvfrghjokl;,mp[wtdyibecux";
int main(){
	int t;
	cin>>t;
	while(t--){
		string s;
		cin>>s;
		for(int i=0;i<s.length();i++){
			int pos=a.find(s[i]);
			char c='a'+pos;
			cout<<c;
		}
		cout<<endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3851