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

#include<stdio.h>
#include<string.h>
int main(){
	char a[100];
	while(scanf("%s",&a)!=EOF){
     int i;
	 for(i=0;i<strlen(a);i++){
	 	if(a[i]!='/0'){
	 	if((a[i]>='a')&&(a[i]<='c')){
	 		a[i]='2';
	 		continue;
		 }
		if((a[i]>='d')&&(a[i]<='f')){
			a[i]='3';continue;
		}
		if((a[i]>='g')&&(a[i]<='i')){
			a[i]='4';continue;
	 	}
	 	if((a[i]>='j')&&(a[i]<='l')){
			a[i]='5';continue;
     	}
     	if((a[i]>='m')&&(a[i]<='o')){
			a[i]='6';continue;
	    }
	    if((a[i]>='p')&&(a[i]<='s')){
			a[i]='7';continue;
     	}
     	if((a[i]>='t')&&(a[i]<='v')){
			a[i]='8';continue;
        }
        if((a[i]>='w')&&(a[i]<='z')){
			a[i]='9';continue;
	    }
	    if(a[i]=='A'){
	    	 a[i]='b';continue;
		}
		 if(a[i]=='B'){
	    	 a[i]='c';continue;
		}
		 if(a[i]=='C'){
	    	 a[i]='d';continue;
		}
		 if(a[i]=='D'){
	    	 a[i]='e';continue;
		}
		 if(a[i]=='E'){
	    	 a[i]='f';continue;
		}
		 if(a[i]=='F'){
	    	 a[i]='g';continue;
		}
		 if(a[i]=='G'){
	    	 a[i]='h';continue;
		}
		 if(a[i]=='H'){
	    	 a[i]='i';continue;
		}
		 if(a[i]=='I'){
	    	 a[i]='j';continue;
		}
		 if(a[i]=='J'){
	    	 a[i]='k';continue;
		}
		 if(a[i]=='K'){
	    	 a[i]='l';continue;
		}
		 if(a[i]=='L'){
	    	 a[i]='m';continue;
		}
		 if(a[i]=='M'){
	    	 a[i]='n';continue;
		}
		 if(a[i]=='N'){
	    	 a[i]='o';continue;
		}
		 if(a[i]=='O'){
	    	 a[i]='p';continue;
		}
		 if(a[i]=='P'){
	    	 a[i]='q';continue;
		}
		 if(a[i]=='Q'){
	    	 a[i]='r';continue;
		}
		 if(a[i]=='R'){
	    	 a[i]='s';continue;
		} if(a[i]=='S'){
	    	 a[i]='t';continue;
		}
		 if(a[i]=='T'){
	    	 a[i]='u';continue;
		}
		 if(a[i]=='U'){
	    	 a[i]='v';continue;
		}
		 if(a[i]=='V'){
	    	 a[i]='w';continue;
		}
		 if(a[i]=='W'){
	    	 a[i]='x';continue;
		}
		 if(a[i]=='X'){
	    	 a[i]='y';continue;
		}
		 if(a[i]=='Y'){
	    	 a[i]='z';continue;
		}
		 if(a[i]=='Z'){
	    	 a[i]='a';continue;
		}
		if((a[i]>='0')||(a[i]<='9')){
			a[i]=a[i];continue;
		}
	}}
 
		printf("%s\n",a);
	}
}