hdu 1982 Kaitou Kid - The Phantom Thief (1) (水。。)
#include"stdio.h" int main() { int t,i; int n; char str[11111]; scanf("%d",&t); getchar(); while(t--) { gets(str); for(i=0;str[i];i++) { if(str[i]=='#') printf(" "); else if(str[i]>='0'&&str[i]<='9') { if(str[i+1]>='0'&&str[i+1]<='9') { n=(str[i]-'0')*10+(str[i+1]-'0'); i++; } else n=str[i]-'0'; printf("%c",n+'A'-1); } } printf("\n"); } return 0; }