Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
19112 | 于俊杰 | C语言6.23 | C++ | Accepted | 1 MS | 696 KB | 350 | 2021-11-12 22:09:14 |
#include<bits/stdc++.h> using namespace std; int main(){ for(int i=1;i<=7/2+1;i++){ for(int j=1;j<=7/2+1-i;j++) cout<<" "; for(int j=1;j<=i*2-1;j++) cout<<"*"; cout<<endl; } for(int i=7/2;i>=1;i--){ for(int j=1;j<=7/2+1-i;j++) cout<<" "; for(int j=1;j<=i*2-1;j++) cout<<"*"; cout<<endl; } return 0; }