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

#include<stdio.h>
#include<string.h>

int main(){
	int i;
	char a[10000];
	char b[30] = "bcdefghijklmnopqrstuvwxyza";
	char c[30] = "22233344455566677778889999";
	while(gets(a)!=NULL){
		for(i=0;i<strlen(a);i++){
			if(65<=a[i]&&a[i]<=90){
				a[i]=b[a[i]-65];
				continue;
			}
			if(a[i]>90)
			a[i]=c[a[i]-97];
		}
		for(i=0;i<strlen(a);i++)
		printf("%c",a[i]);
		printf("\n");
	}
}