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

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<ctype.h>
int main(){
	int n,i,a,b;
	char sz[200];
	while(scanf("%s",sz)!=EOF){
	n=strlen(sz);
	for(i=0;i<n;++i){
		a=(int)sz[i];
		if(a>=97&&a<=122){
		if(a>=97&&a<=99)
			b=50;
		if(a>99&&a<=102)
			b=51;
		if(a>102&&a<=105)
			b=52;
		if(a>105&&a<=108)
			b=53;
		if(a>108&&a<=111)
			b=54;
		if(a>111&&a<=115)
			b=55;
		if(a>115&&a<=118)
			b=56;
		if(a>118&&a<=122)
			b=57;
		sz[i]=b;		
		}
		if(a>=65&&a<=90){
		if(a>=65&&a<=89){
			b=a+1+32;
		}
		if(a==90){
			b=a+7;
		}
		sz[i]=b;
		}								
	}
	puts(sz);
}
	return 0;
}