#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;
}
hdu 1982 Kaitou Kid - The Phantom Thief (1) (水。。)
最新推荐文章于 2021-03-06 16:21:58 发布
本文介绍了一个使用C语言编写的程序,该程序可以将输入字符串中的特定字符转换为相应的ASCII码对应的字母。程序通过读取整数次数和字符串,然后遍历字符串中的每个字符,如果字符是数字,则将其转换为指定的字母输出。
1914

被折叠的 条评论
为什么被折叠?



