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

#include<stdio.h>
#include<math.h>
#include<string.h>
#define A 1000
int main()
{

	char a[A];
	while(scanf("%s",a)!=EOF)
	{
		for(int i=0;i<strlen(a);++i)
		{
			if(a[i]>=65&&a[i]<=89)
			{
				a[i]+=33;
				printf("%c",a[i]);
				continue;
			}
			if(a[i]==90)
			{
				printf("a");
				continue;
			}

			if(a[i]>=97)
			{
				if(a[i]<=99)
				{
					printf("2");
					continue;
				}
				else if(a[i]<=102)
				{
					printf("3");
					continue;
				}
				else if(a[i]<=105)
				{
					printf("4");
					continue;
				}
				else if(a[i]<=108)
				{
					printf("5");
					continue;
				}
				else if(a[i]<=111)
				{
					printf("6");
					continue;
				}
				else if(a[i]<=115)
				{
					printf("7");
					continue;
				}
				else if(a[i]<=118)
				{
					printf("8");
					continue;
				}
				else if(a[i]<=122)
				{
					printf("9");
					continue;
				}
				


			}
			printf("%c",a[i]);
		}
		printf("\n");
	}

	return 0;
}