| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62997 | 冯纪尧 | 打印反直角三角形 | C++ | Presentation Error | 11 MS | 268 KB | 270 | 2023-12-31 10:40:48 |
#include<iostream> #include<cstring> using namespace std; int main(){ int n; cin>>n; int sum=0; for(int j=0;j<n;j++){ sum=n-j; for(int i=0;i<sum;i++){ cout<<" "; } for(int i=0;i<n-sum+1;i++){ cout<<"*"; } cout<<endl; } }