| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 120365 | 毛靖平 | 打印反直角三角形 | C++ | Presentation Error | 11 MS | 276 KB | 338 | 2025-05-25 14:42:49 |
#include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; for(int i=1;i<=a;i++){ //1 4 2 3 3 2 4 1 5 0 for(int q=1;q<=a-b;q++){ cout<<" "; } b++; for(int h=1;h<=b;h++){ cout<<"*"; } cout<<endl; } return 0; }