Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: chillxvtkz

Problemset: อโมกุส

Language: cpp

Time: 0.006 second

Submitted On: 2025-10-05 15:17:01

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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    int N;
    cin >> N;
    
    // Original pattern for N=1
    string pattern[4] = {
        " ###",
        "##",
        "####",
        " # #"
    };
    
    for (int row = 0; row < 5; row++) {
        for (int r = 0; r < N; r++) {
            for (char c : pattern[row]) {
                for (int i = 0; i < N; i++) {
                    cout << c;
                }
            }
            cout << '\n';
        }
    }
    
    return 0;
}