1 条题解

  • 2
    @ 2023-5-12 16:21:18

    使用 C++ 风格的输入输出

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        int n;
        cin >> n;
        int num = 0;
        for(int i = 1; i <= n; i++) {
            for(int j = i; j <= n; j++) {
                cout << setfill('0') << setw(2) << ++num;
            }
            cout << endl;
        }
        return 0;
    }
    
    • 1

    信息

    ID
    4643
    时间
    1000ms
    内存
    125MiB
    难度
    1
    标签
    (无)
    递交数
    9
    已通过
    7
    上传者