Result: Accepted
Time: 3ms
Memory: 1120kB
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
int main(){
char a[102];
while(scanf("%s",a)!=EOF){
int i,m,b[102]={0};
m=strlen(a);
for(i=0;i<m;i++){
b[i]=(int)(a[i]);
}
for(i=0;i<m;i++){
if(b[i]>=65&&b[i]<90)
b[i]=b[i]+33;
else if(b[i]==90)
b[i]=97;
else if(b[i]>=97&&b[i]<=99)
b[i]=2+48;
else if(b[i]>=100&&b[i]<=102)
b[i]=3+48;
else if(b[i]>=103&&b[i]<=105)
b[i]=4+48;
else if(b[i]>=106&&b[i]<=108)
b[i]=5+48;
else if(b[i]>=109&&b[i]<=111)
b[i]=6+48;
else if(b[i]>=112&&b[i]<=115)
b[i]=7+48;
else if(b[i]>=116&&b[i]<=118)
b[i]=8+48;
else if(b[i]>=119&&b[i]<=122)
b[i]=9+48;
else
b[i]=b[i];
}
for(i=0;i<m-1;i++){
printf("%c",b[i]);
}
printf("%c\n",b[m-1]);
}
}