#include<iostream>
using namespace std;
int main()
{
int a, b, c,n,tmp;
cin >> n;
a = n /100;
tmp = n % 100;
b = tmp/10;
tmp %= 10;
c = tmp;
for (int i = 0; i < a; i++)
{
cout << "B";
}
for (int i = 0; i < b; i++)
{
cout << "S";
}
for (int i = 1; i < c+1; i++)
{
cout << i;
}
return 0;
}
1006 换个格式输出(C++)
最新推荐文章于 2024-07-30 11:33:12 发布