Submission

Status:

-----

Subtask/Task Score:

0/100

Score: 0

User: kakcode

Problemset: กังหันสี่ทิศ

Language: cpp

Time: 0.002 second

Submitted On: 2025-11-11 21:36:43

/*
TASK: c1_bkk60_2
LANG: C++
AUTHOR: ICE
*/
#include <bits/stdc++.h>
using ll = long long;
#define forr(i, a, n) for (int i = a; i < n; i++)
const ll inf = 10e9;
#define int ll
using namespace std;
using pii = pair<int,int>;
signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    cin >> n;
    char c = 'A' + n - 1;
    int t = n-1;
    for(int i=0;i<n*2-1;i++){
        for(int j=0;j<n*2-1;j++){
            int gap = abs(n-j-1);
            if(gap == t)cout << c;
            else cout << ' ';
            //cout << gap;
        }
        for(int j=0;j<n;j++)cout << ' ';
        for(int j=0;j<n*2-1;j++){
            int gap = abs(n-j-1);
            if(gap == t)cout << '*';
            else cout << ' ';
        }
        if(i > n-2){t++;c++;}
        else {t--;c--;}
        cout << '\n';
    }
    return 0;
}