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

#include<stdio.h>
#include<string.h>
int main()
{

	char a[1000];
	while(scanf("%s",&a)!=EOF)
	{
		for(int i=0;i<strlen(a);i++)
		{
			if(a[i]>=65&&a[i]<=89)printf("%c",a[i]+33);
			else if(a[i]==90)printf("%c",a[i]+7);
			else if(a[i]>=97&&a[i]<=99)printf("2");
			else if(a[i]>=100&&a[i]<=102)printf("3");
			else if(a[i]>=103&&a[i]<=105)printf("4");
			else if(a[i]>=106&&a[i]<=108)printf("5");
			else if(a[i]>=109&&a[i]<=111)printf("6");
			else if(a[i]>=112&&a[i]<=115)printf("7");
			else if(a[i]>=116&&a[i]<=118)printf("8");
			else if(a[i]>=119&&a[i]<=122)printf("9");
			else printf("%c",a[i]);
		}
		printf("\n");
	}

return 0;
}