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: CT12810111281
In contest: 1281

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