Submission

Status:

PPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Phat12

Problemset: ฝุ่นธุลีล้อมดาว

Language: cpp

Time: 0.070 second

Submitted On: 2025-12-28 12:56:18

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using pii = pair<int,int>;

#define all(x) (x).begin(), (x).end()

const int MOD = 1e9 + 7;


int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int a;
    cin >> a;
    int n = 2*a-1;
    for (int i=0;i<n;i++){
        for (int j=0;j<n;j++){;
            if (i==a-1 && j==a-1) cout << "*";
            else if (abs(a-i-1) > j || n-abs(a-i-1) <= j){
                cout << "-";
            }
            else cout << "+";
        }
        
        cout << '\n';
    }

    return 0;
}