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

#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
	char mm[1000];
	while(scanf("%s",mm)!=EOF)
	{
		int k;
	int i;
	k = strlen(mm);
	for(i=0;i<k;i++)
	{
		if(mm[i]>='A'&&mm[i]<'Z')
		{
			mm[i] += 33;
		}
		else if(mm[i]=='Z')
		{
			mm[i] = 'a';
		}
		else 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';
		}
		printf("%c",mm[i]);
		if(i==k-1)
		{
			printf("\n");
		}
}
	}
	
}