Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: RusticJoe26

Problemset: อโมกุส

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-01 12:56:24

#include <iostream>
#include <iomanip>
using namespace std;

void print(string out,int times){
    for (int i = 0; i < times; i++){
        cout << out << "\n";
    }
}

int main(){
    int N;
    cin >> N;
    string tray = "";
    for (int i = 0; i < (N*4); i++){
        if(i < N){ tray += " "; }
        else { tray += "#"; }
    }
    print(tray,N);
    tray = "";
    for (int i = 0; i < (N*4); i++){
        if(i < N*2){ tray += "#"; }
        else { tray += " "; }
    }
    print(tray,N);
    tray = "";
    for (int i = 0; i < (N*4); i++){
        tray += "#";
    }
    print(tray,N);
    tray = "";
    for (int j = 0; j < 2; j++){
        for(int i = 0; i < N; i++){
            tray += " ";
        }
        for(int i = 0; i < N; i++){
            tray += "#";
        }
    }
    print(tray,N);
    tray = "";
}