AC代码 #include <cstdio> const int max_n = 3; char radix[max_n] = {' ', 'S', 'B'}; int ans[max_n]; int num = 0; void change(int a) { do { ans[num++] = a % 10; a /= 10; } while (a != 0); } int main() { int n; scanf("%d", &n); change(n); f…
超简单题 //直接将各位分开,分别用for循环输出 #include<stdio.h> int main(){ int num; scanf("%d",&num); int bai=num/100; int shi=num/10%10; int ge = num%10; for(int i=0;i<bai;i++) printf("B"); for(int i=0;i<shi;i++) printf("S"); f…