竞赛
考级
法兰西玫瑰
#include<bits/stdc++.h> using namespace std; int main(){ int a,b=0; cin>>a; b=1; for(int i=1;i<=a;i++){ for(int k=0;k<a-i;k++){ cout<<" "; } if(i1){ cout<<""<<endl; continue; } cout<<""; for(int k=0;k<b;k++){ cout<<" "; } cout<<"*"; cout<<endl; b+=2; } b-=4; for(int i=1;i<a;i++){ for(int k=0;k<i;k++){ cout<<" "; } if(ia-1){ cout<<""<<endl; continue; } cout<<""; for(int k=0;k<b;k++){ cout<<" "; } cout<<"*"; cout<<endl; b-=2; } }
HAPPY猫
#include<iostream> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int k=1;k<=n-i;k++){ cout<<" "; } for(int j=1;j<=2i-1;j++){ if(j1 or j2i-1){ cout<<'*'; }else{ cout<<" "; } }
枫原万叶 [须佐能乎]
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n-i;j++){ cout<<" "; } if(i1){ cout<<""; }else{ cout<<""; for(int j=1;j<=(i-1)2-1;j++){ cout<<" "; } cout<<""; } cout<<endl; } for(int i=n-1;i>=1;i--){ for(int j=1;j<=n-i;j++){ cout<<" "; } if(i1){ cout<<""; }else{ cout<<""; for(int j=1;j<=(i-1)2-1;j++){ cout<<" "; } cout<<""; } cout<<endl; } return 0; } 有帮助,赞一个
醉词意
回来看看
准
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n-i;j++){ cout<<" "; } if(i1){ cout<<""; }else{ cout<<""; for(int j=1;j<=(i-1)2-1;j++){ cout<<" "; } cout<<""; } cout<<endl; } for(int i=n-1;i>=1;i--){ for(int j=1;j<=n-i;j++){ cout<<" "; } if(i1){ cout<<""; }else{ cout<<""; for(int j=1;j<=(i-1)2-1;j++){ cout<<" "; } cout<<""; } cout<<endl; } return 0; }
186****6957
Felix0604(AC君)
Zด้้้้้็้้้้้้้็
Dream
私密马赛
正在减肥的吃货
130****2086
耐高总冠军 张文杰
有事找大号
沦陷l -->
无