救民于水火

x-hechengye 2022-08-07 15:24:09 9 返回题目

#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
    cin >> n;
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= i; j++) {
            cout << j << ' ';
        }
        cout << endl;
    }
    return 0;
}
{{ vote && vote.total.up }}