竞赛
考级
#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++){ cout<<""; } cout<<endl; } }
chaizechen
法兰西玫瑰
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin >> a; for(int j = 1;j <= a;j++){ for(int i = 1;i <= a - j;i++){ cout << " "; } for(int k = 1;k <= 2 * j - 1;k++){ cout << "*"; } cout << endl; } }
红龙一斗
不会c++的staff
逍遥骇好=&
#include <bits/stdc++.h> using namespace std;int main(){int a;cin >> a;for(int j = 1;j <= a;j++){for(int i = 1;i <= a - j;i++)cout << " ";for(int k = 1;k <= 2 * j - 1;k++){cout << "*";}cout << endl;}}
🕈.👎.☝✌💧❄☜☼
寒香舞
#include<bits/stdc++.h> #include<fstream> #include<cmath> using namespace std; int main(){ int a; cin >>a; for(int i=1;i<=a;i++){ for(int j=a;j>i;j--){ cout <<" "; //空格 } for(int j =1;j<=i2-1;j++){ cout <<""; //打印 } cout <<endl; } return 0; }
涅槃火凤(肖子益)
#include <bits/stdc++.h> using namespace std; int main() { int n, a = 1, c = 1; char b = ' ', d = '*'; scanf("%d", &n); int e = n; do { for (int i = 1; i < e; ++i) { printf("%c", b); } for (int j = 1; j <= a; ++j) { printf("%c", d); } printf("\n"); a += 2; ++c; --e; } while (c <= n); return 0; }
Ricardo.M.Lu
LEC
AC
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin >> a; for(int j = 1;j <= a;j++){ for(int i = 1;i <= a - j;i++){ cout << " "; } for(int k = 1;k <= 2 * j - 1;k++){ cout << "*"; } cout << endl; } return 0; }
醉词意
复仇者_x
139****8343
#include <iostream> using namespace std; int main(){ int n; scanf("%d",&n); int m=1+(n-1)2; for(int i=1;i<=m;i+=2) { for(int j=1;j<=(m-i)/2;j++) cout<<' '; for(int j=1;j<=i;j++) cout<<''; for(int j=1;j<=(m-i)/2;j++) cout<<' '; cout<<endl; } return 0; }
Voldemort
耐高总冠军 张文杰
#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<<" "; } for (int j=1;j<=(2i-1);j++){ cout<<""; } cout<<endl; } }
胡桃(互关)-->
YuQing1919
私密马赛
「欢愉」花火
共33条