-
Notifications
You must be signed in to change notification settings - Fork 14
/
10222.cpp
22 lines (22 loc) · 865 Bytes
/
10222.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
int main(){
string master="`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
int max=master.length();
string str;
while(getline(cin,str,'\n')){
int len=str.length(),i,j;
for(i=0;i<len;i++){
str[i]=tolower(str[i]);
for(j=0;j<max;j++){
if(str[i]==master[j])
str[i]=master[j-2];
}
}
cout<<str<<endl;
}
return 0;
}