Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: sulinx

Problemset: อโมกุส

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-25 00:14:02

#include <bits/stdc++.h>

using namespace std;

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

        for(int r = 0;r<n;r++){
            for(int j = 0;j<n;j++){
                cout << "##";
            }
            cout << '\n';
        }

        for(int r = 0;r<n;r++){
            for(int j = 0;j<n;j++){
                cout << "####";
            }
            cout << '\n';
        }

        for(int r = 0;r<n;r++){
            for(int j = 0;j<n;j++){
                cout << " ";
            }
            for(int j = 0;j<n;j++){
                cout << "#";
            }
            for(int j = 0;j<n;j++){
                cout << " ";
            }
            for(int j = 0;j<n;j++){
                cout << "#";
            }
            cout << '\n';
        }
}