题解 | #表示数字#
表示数字
http://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
include<stdio.h>
include<string.h>
int main()
{
char str[1000];
while(gets(str)!=NULL)
{
int flag=0;
if(str[0]>=0&&str[0]<='9')
printf("*");
for(int i=0;i<strlen(str);i++)
{
printf("%c",str[i]);
if((str[i]>='0'&&str[i]<='9')&&(str[i+1]<'0'||str[i+1]>'9'))
printf("*");
else if((str[i]<'0'||str[i]>'9')&&(str[i+1]>='0'&&str[i+1]<='9'))
printf("*");
}
printf("\n");
}
}