Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Newton4566

Problemset: อโมกุส

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-02 09:44:34

#include <iostream>
using namespace std;

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

    int n;
    cin >> n;
    
    for (int i = 0; i < n; i++) { // head
        for (int j = 0; j < n; j++) {
            cout << ' ';
        }
        for (int j = 0; j < n; j++) {
            cout << "###";
        }
        cout << '\n';
    }

    for (int i = 0; i < n; i++) { // upper body
        for (int j = 0; j < n; j++) {
            cout << "##";
        }
        cout << '\n';
    }

    for (int i = 0; i < n; i++) { // lower body
        for (int j = 0; j < n; j++) {
            cout << "####";
        }
        cout << '\n';
    }

    for (int i = 0; i < n; i++) { // legs
        for (int k = 0; k < 2; k++) {
            for (int j = 0; j < n; j++) {
                cout << ' ';
            }
            for (int j = 0; j < n; j++) {
                cout << '#';
            }
        }
        cout << '\n';
    }

    return 0;
}