Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
317564 | 马圣洁 | 【C3-4】放大的箭头 | C++ | 通过 | 100 | 1 MS | 252 KB | 378 | 2025-04-12 17:24:15 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n/2+1;i++){ for(int j=0;j<i-1;j++){ cout<<" "; } for(int j=1;j<=n;j++){ cout<<"*"; } cout<<endl; } for(int a=1;a<=n/2;a++){ for(int j=1;j<=n/2-a;j++){ cout<<" "; } for(int j=1;j<=n;j++){ cout<<"*"; } cout<<endl; } return 0; }