| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 152051 | 吴晨曦 | 杨辉三角 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 274 | 2024-06-22 08:58:12 |
#include <bits/stdc++.h> using namespace std; int a[16][16]; int main() { a[1][1] = 1; int n; cin >> n; for (int i = 2; i <= n; i++) { for (int j = 1; j <= i; j++) a[i][j] = a[i - 1][j] + a[i - 1][j - 1], cout << a[i][j] << " "; cout << endl; } }