题意 对于给定的三位正整数,按指定格式输出。 思路 模拟即可。 代码 #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int n; cin >> n; vector a(3); for (int i = 0; i < 3; ++i) { a[i] = n ; n /= 10; } reverse(a.begin(), a.end()); for (int i = 0; i < a[0];