| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 319765 | Mr. Fang | 星号三角阵(三) T2 | C++ | Compile Error | 0 MS | 0 KB | 298 | 2026-04-29 12:40:13 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; ++i) { // 输出 i 个空格 1 for (int j = 0; j < i; ++j) { cout << ' '; } // 输出 n-i 个星号 for (int j = 0; j < n - i; ++j) { cout << '*'; } cout << endl; } return 0; }