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

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

}