题解 | 单组_补充前导零
单组_补充前导零
https://www.nowcoder.com/practice/c5b1fb6a4b1644e590b49a4cbca7930e
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
long long n;
cin>>n;
// 使用流操作符设置宽度和填充字符
cout << setw(9) << setfill('0') << n << endl;
// string n;
// cin >> n;
// int a = 9 - n.size();
// while ( a-- ) {
// cout << '0' ;
// }
// cout << n;
}
// 64 位输出请用 printf("%lld")
自存
