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

#include<stdio.h>
#include<math.h>
#include<string.h>
int main (){
char a[101],b,i,c,d;
while(gets(a)!=NULL){
	b=strlen(a);
	if(b>100)
		break;
for(i=0;i<b&&a[i]!=' ';i++)
	{
	 if(a[i]>=97&&a[i]<=99)
		a[i]='2';
    else if(a[i]>=100&&a[i]<=102)
	a[i]='3';
else if(a[i]>=103&&a[i]<=105)
		a[i]='4';
else if(a[i]>=106&&a[i]<=108)
	a[i]='5';
else if(a[i]>=109&&a[i]<=111)
		a[i]='6';
else if(a[i]>=112&&a[i]<=115)
	a[i]='7';
else if(a[i]>=116&&a[i]<=118)
		a[i]='8';
else if(a[i]>=119&&a[i]<=122)
	a[i]='9';
else if(a[i]>=65&&a[i]<90)
 a[i]=a[i]+33;
 else if(a[i]=='Z')
	 a[i]='a';}
puts(a);
}


return 0;}