Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Quinruj

Problemset: อโมกุส

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-27 19:51:29

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

string a = "###",b = "##",c = "####";

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int n;cin>>n;
    for (int i = 0;i<n;i++){
        for (int j = 0;j<n;j++) cout << ' ';
        for (int j = 0;j<n;j++) cout << a;
        cout << '\n';
    }
    for (int i = 0;i<n;i++){
        for (int j = 0;j<n;j++) cout << b;
        cout << '\n';
    }
    for (int i = 0;i<n;i++){
        for (int j = 0;j<n;j++) cout << c;
        cout << '\n';
    }
    for (int i = 0;i<n;i++){
        for (int j = 0;j<2;j++){
            for (int k = 0;k<n;k++) cout << ' ';
            for (int k = 0;k<n;k++) cout << '#';
        }cout << '\n';
        
    }
}