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

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

}