Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: pann

Problemset: อโมกุส

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-02 07:08:55

#include <iostream>
using namespace std;

int main(){
    int n;
    cin >> n;
    string pattern[] = {
        " ###",
        "##",
        "####",
        " # #"};
    for (string x: pattern){
        for (int i = 0; i < n; i++){
            for (char y: x){
                for (int j = 0; j < n; j++){
                    cout << y;
                }
            }
            cout << endl;
        }
    }
    return 0;
}