View Code of Problem 3851

#include <iostream>
#include <cstdio>
using namespace std;
int main(){
    int t;
    cin>>t;
    while(t--){
        string s;
        cin>>s;
        string a="qwertyuiop[asdfghjkl;zxcvbnm,";
        for(int i=0;i<s.length();i++){
            for(int j=0;j<a.length();j++){
                if(s[i]==a[j])
                    cout<<a[j-1];
            }
        }
        cout<<endl;
    }
    return 0;
}


Double click to view unformatted code.


Back to problem 3851