验证中...
Languages: C/C++
Categories: 其他
Latest update 2019-08-12 09:22
gistfile1.txt
Raw Copy
#include <stdio.h>
int main()
{
int num;
scanf("%d",&num);
int time[3]={0};
int i=0;
while(num)
{
time[i]=num%10;
num=num/10;
i++;
}
for(int j=0;j<time[2];j++)
{
printf("B");
}
for(int j=0;j<time[1];j++)
{
printf("S");
}
if(time[0]==0)
{
}
else
{
for(int j=1;j<=time[0];j++)
{
printf("%d",j);
}
}
printf("\n");
}

Comment list( 0 )

Sign in for post a comment

Help Search