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

#include<stdio.h>
#include<ctype.h>
int main(void){
	int n,i;
	char a[101];
	while(scanf("%s",a)!=EOF){
		for(i=0;i<101;i++){
			if('a'<=a[i]&&a[i]<='c')
			a[i]='2';
			if('d'<=a[i]&&a[i]<='f')
			a[i]='3';	
			if('g'<=a[i]&&a[i]<='i')
			a[i]='4';
			if('j'<=a[i]&&a[i]<='l')
			a[i]='5';
			if('m'<=a[i]&&a[i]<='o')
			a[i]='6';
			if('p'<=a[i]&&a[i]<='s')
			a[i]='7';
			if('t'<=a[i]&&a[i]<='v')
			a[i]='8';
			if('w'<=a[i]&&a[i]<='z')
			a[i]='9';								
			if('A'<=a[i]&&a[i]<'Z')
			a[i]=tolower(a[i])+1;
			if(a[i]=='Z')
			a[i]='a';
		}
		printf("%s\n",a);
	}
	return 0;
}