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: 4ms
Memory: 1120kB
Author: CT12811261281
In contest: 1281

	#include<stdio.h>
	#include<string.h>
	int main(){
		char c[101];
		while(gets(c)!=NULL){
			int i,len=0;
			len=strlen(c);
			for(i=0;i<len;i++){
				if(c[i]=='a'||c[i]=='b'||c[i]=='c')
				c[i]='2';
				if(c[i]=='d'||c[i]=='e'||c[i]=='f')
				c[i]='3';
				if(c[i]=='g'||c[i]=='h'||c[i]=='i')
				c[i]='4';
				if(c[i]=='j'||c[i]=='k'||c[i]=='l')
				c[i]='5';
				if(c[i]=='m'||c[i]=='n'||c[i]=='o')
				c[i]='6';
				if(c[i]=='p'||c[i]=='q'||c[i]=='r'||c[i]=='s')
				c[i]='7';
				if(c[i]=='t'||c[i]=='v'||c[i]=='u')
				c[i]='8';
				if(c[i]=='w'||c[i]=='x'||c[i]=='y'||c[i]=='z')
				c[i]='9';
				if(c[i]>64&&c[i]<90)
				c[i]=(c[i]+33)%97+97;
				if(c[i]=='Z')
				c[i]='a';
			}
			for(i=0;i<len;i++){
				printf("%c",c[i]);
			}printf("\n");
		} 
		
	}