View Code of Problem 3851

#include <stdio.h>
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<stack>
using namespace std;
string str2 = "qwertyuiopasdfghjklzxcvbnm";
string pp2 =  "wertyuiop[sdfghjkl;xcvbnm,";
int main() {
	int t;
	cin >> t;
	string str;
	while (t--) {
		string pp;
		cin >> str;
		for(int f=0;f<str.size();f++){
		    for(int i=0;i<pp2.size();i++){
				if (pp2[i] == str[f]) {
					cout << str2[i];
				}
		}

		}
		cout << endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3851