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: 4ms
Memory: 1120kB
Author: CT12812511281
In contest: 1281

#include<stdio.h>
#include<string.h>

int main()
{
	char c[101];
	while(scanf("%s",c)!=EOF)
	{
		int len=strlen(c);
		for(int i=0;i<len;i++)
		{
			if(c[i]>=65&&c[i]<'Z')
				c[i]=c[i]+33;
			else if(c[i]=='Z')
				c[i]='a';
			else if(c[i]=='a'||c[i]=='b'||c[i]=='c')
				c[i]='2';
			else if(c[i]=='d'||c[i]=='e'||c[i]=='f')
				c[i]='3';
			else if(c[i]=='g'||c[i]=='h'||c[i]=='i')
				c[i]='4';
			else if(c[i]=='j'||c[i]=='k'||c[i]=='l')
				c[i]='5';
			else if(c[i]=='m'||c[i]=='n'||c[i]=='o')
				c[i]='6';
			else if(c[i]=='p'||c[i]=='q'||c[i]=='r'||c[i]=='s')
				c[i]='7';
			else if(c[i]=='t'||c[i]=='u'||c[i]=='v')
				c[i]='8';
			else if(c[i]=='w'||c[i]=='x'||c[i]=='y'||c[i]=='z')
				c[i]='9';
			printf("%c",c[i]);
		}
		printf("\n");
	}
	
}