13 条题解

  • 0
    @ 2025-12-21 18:21:07

    #include <bits/stdc++.h> using namespace std; int n, y[45][45]; int main() { cin >> n; y[0][0] = 1; for(int i = 1; i <= n; i++) { for(int j = 1; j <= i; j++) { y[i][j] = y[i - 1][j] + y[i - 1][j - 1]; cout << y[i][j] << " "; } cout << endl; } return 0;
    }````

    信息

    ID
    1078
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    743
    已通过
    302
    上传者