ans

DOZIE 2022-08-14 21:28:03 7 返回题目

#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; for (int i = 1 ; i <= 2 * n - 1 ; i++) cout << ''; cout << endl; for (int i = 1 ; i <= n - 1 ; i++) { cout << ''; for (int j = 1 ; j <= 2 * n - 2 ; j++) cout << ' '; cout << ''; cout << endl; } for (int i = 1 ; i <= 2 * n - 1 ; i++) cout << ''; cout << endl; for (int i = 1 ; i <= n - 1 ; i++) { cout << ''; for (int j = 1 ; j <= 2 * n - 2 ; j++) cout << ' '; cout << ''; cout << endl; } for (int i = 1 ; i <= 2 * n - 1 ; i++) cout << '*'; cout << endl; return 0; }

{{ vote && vote.total.up }}