| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151240 | 刘梓含 | 打印反直角三角形 | C++ | Accepted | 11 MS | 268 KB | 332 | 2026-04-11 13:29:49 |
#include<bits/stdc++.h> using namespace std; int main (){ int n; cin >> n; for(int i = n - 1;i > 0;i--) { for(int s = 1;s <= i;s++) { cout << " "; } for(int d = 1;d <= n - i;d++) { cout << "*"; } cout << endl; } for(int i = 1;i <= n;i++) { cout << "*"; } return 0; }