我的个人网站
文章来源
欢迎交换友链 :-)
#include <bits/stdc++.h>
using namespace std;
int main() {
int index;
while (cin >> index) {
for (int i=0; i<index / 100; i++)
cout << 'B';
for (int i=0; i<index / 10 % 10; i++)
cout << 'S';
for (int i=1; i<=index % 10; i++)
cout << i;
cout << endl;
}
return 0;
}

发布评论