Submission

Status:

-----

Subtask/Task Score:

0/100

Score: 0

User: tull

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-07-07 18:26:56

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int MOD=1e9+7;
void testcase(){
    int n=3;
    cin>>n;
    for(int j=0;j<n-1;++j){
        char c='A'+n-j-1;
        cout<<string(j*2,' ')<<c<<string(2*((n-j-1)*2-1)+1,' ')<<c
        <<string(n+j*2,' ')<<string(j*2,' ')<<'*'<<string(2*((n-j-1)*2-1)+1,' ')<<'*'<<'\n';
    }
    cout<<string(n*2-2,' ')<<'A'<<string((n-1)*5+1,' ')<<'*'<<'\n';
    for(int j=0;j<n-1;++j){
        char c='A'+j+1;
        cout<<string(2*(n-j-2),' ')<<c<<string(1+2*((j+1)*2-1),' ')<<c
        <<string(4*(n-j-2)+n,' ')<<'*'<<string(1+2*((j+1)*2-1),' ')<<'*'<<'\n';
    }
}
signed main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    int q=1;
    //cin>>q;
    while(q--){
        testcase();
    }

}
/*

*/