题解 | 单组_补充前导零
单组_补充前导零
https://www.nowcoder.com/practice/c5b1fb6a4b1644e590b49a4cbca7930e
#include <bits/stdc++.h> using namespace std; signed main() { string n; cin >> n; cout << string(9 - n.size(), '0') << n << '\n'; return 0; }
单组_补充前导零
https://www.nowcoder.com/practice/c5b1fb6a4b1644e590b49a4cbca7930e
#include <bits/stdc++.h> using namespace std; signed main() { string n; cin >> n; cout << string(9 - n.size(), '0') << n << '\n'; return 0; }
相关推荐