Start: Jul, 05, 2019 08:40:00
2019年度暑期短学期达标测试
End: Jul, 05, 2019 11:40:00
Time elapsed:
Time remaining:

Problem_ID: D
Result: Accepted
Time: 3ms
Memory: 1120kB
Author: CT12813051281
In contest: 1281

#include<stdio.h>
#include<string.h>
int main(){
	char mm[1000];
	while(scanf("%s",&mm)!=EOF){
	for(int i=0;i<strlen(mm);i++){
		if(mm[i]=='a'||mm[i]=='b'||mm[i]=='c')
		mm[i]='2';
		else if(mm[i]=='d'||mm[i]=='e'||mm[i]=='f')
		mm[i]='3';
		else if(mm[i]=='g'||mm[i]=='h'||mm[i]=='i')
		mm[i]='4';
		else if(mm[i]=='j'||mm[i]=='k'||mm[i]=='l')
		mm[i]='5';
		else if(mm[i]=='m'||mm[i]=='n'||mm[i]=='o')
		mm[i]='6';
		else if(mm[i]=='p'||mm[i]=='q'||mm[i]=='r'||mm[i]=='s')
		mm[i]='7';
		else if(mm[i]=='t'||mm[i]=='u'||mm[i]=='v')
		mm[i]='8';
		else if(mm[i]=='w'||mm[i]=='x'||mm[i]=='y'||mm[i]=='z')
		mm[i]='9';
		else if(mm[i]=='A')
		mm[i]='b';
		else if(mm[i]=='B')
		mm[i]='c';
		else if(mm[i]=='C')
		mm[i]='d';
		else if(mm[i]=='D')
		mm[i]='e';
		else if(mm[i]=='E')
		mm[i]='f';
		else if(mm[i]=='F')
		mm[i]='g';
		else if(mm[i]=='G')
		mm[i]='h';
		else if(mm[i]=='H')
		mm[i]='i';
		else if(mm[i]=='I')
		mm[i]='j';
		else if(mm[i]=='J')
		mm[i]='k';
		else if(mm[i]=='K')
		mm[i]='l';
		else if(mm[i]=='L')
		mm[i]='m';
		else if(mm[i]=='M')
		mm[i]='n';
		else if(mm[i]=='N')
		mm[i]='o';
		else if(mm[i]=='O')
		mm[i]='p';
		else if(mm[i]=='P')
		mm[i]='q';
		else if(mm[i]=='Q')
		mm[i]='r';
		else if(mm[i]=='R')
		mm[i]='s';
		else if(mm[i]=='S')
		mm[i]='t';
		else if(mm[i]=='T')
		mm[i]='u';
		else if(mm[i]=='U')
		mm[i]='v';
		else if(mm[i]=='V')
		mm[i]='w';
		else if(mm[i]=='W')
		mm[i]='x';
		else if(mm[i]=='X')
		mm[i]='y';
		else if(mm[i]=='Y')
		mm[i]='z';
		else if(mm[i]=='Z')
		mm[i]='a';
	}
	printf("%s\n",mm);
}
}