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

#include<stdio.h>
#include<string.h>
char str1[106];
int main(){
	int i;
	while(scanf("%s",str1)!=EOF){
		for(i=0;i<strlen(str1);i++){
			if(str1[i]=='a'||str1[i]=='b'||str1[i]=='c') str1[i]=50;
			if(str1[i]=='d'||str1[i]=='e'||str1[i]=='f') str1[i]=51;
			if(str1[i]=='g'||str1[i]=='h'||str1[i]=='i') str1[i]=52;
			if(str1[i]=='j'||str1[i]=='k'||str1[i]=='l') str1[i]=53;
			if(str1[i]=='m'||str1[i]=='n'||str1[i]=='o') str1[i]=54;
			if(str1[i]=='p'||str1[i]=='q'||str1[i]=='r'||str1[i]=='s') str1[i]=55;
			if(str1[i]=='t'||str1[i]=='u'||str1[i]=='v') str1[i]=56;
			if(str1[i]=='w'||str1[i]=='x'||str1[i]=='y'||str1[i]=='z') str1[i]=57;
			if(str1[i]>=65&&str1[i]<90)
				str1[i]=str1[i]+33;
			if(str1[i]=='Z') str1[i]='a';
		}
		printf("%s\n",str1);
	}
}