| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165246 | 王垚植 | 输出梯形 | C++ | Accepted | 2 MS | 272 KB | 416 | 2026-11-14 11:49:29 |
#include<iostream> using namespace std; int main(){ int h; while(cin>>h){ int s=2*(h-1); int s1=h; for(int i=0;i<h;i++){ for(int j=0;j<s;j++){ cout<<' '; } for(int j=0;j<s1;j++){ cout<<'*'; } cout<<'\n'; s-=2; s1+=2; } } return 0; }