| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77521 | 梁敖铭 | 打印反直角三角形 | C++ | Presentation Error | 11 MS | 272 KB | 258 | 2024-06-09 22:29:34 |
#include<iostream> #include<stdio.h> #include<string> using namespace std; int main(){ int n,a; cin>>n; for(int i = 1;i<=n;i++){ for(int b=0;b<(n-a-1);b++){ cout<<" "; } for(a=0;a<i;a++){ cout<<"*"; } cout<<endl; } }