Submission

Status:

-P--------

Subtask/Task Score:

10/100

Score: 10

User: samsenpisardmoo69

Problemset: อโมกุส

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-02 15:35:07

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    cin >> n;
    char arr[4*n][4*n];
    
    for(int i=0; i<4*n; i++)
    {
        for(int j=0; j<4*n; j++)
        {
            arr[i][j] = ' ';
        }
    }
    
    for(int i=0; i<n; i++)
    {
        for(int j=n; j<4*n; j++)
        {
            arr[i][j] = '#';
        }
    }
    
    for(int i=2; i<2+n; i++)
    {
        for(int j=0; j<2*n; j++)
        {
            arr[i][j] = '#';
        }
    }
    
    for(int i=2+n; i<2+2*n; i++)
    {
        for(int j=0; j<4*n; j++)
        {
            arr[i][j] = '#';
        }
    }
    
    for(int i=2+2*n; i<4*n; i++)
    {
        for(int j=0; j<n; j++)
        {
            arr[i][j] = ' ';
        }
        for(int j=n; j<2*n; j++)
        {
            arr[i][j] = '#';
        }
        for(int j=2*n; j<3*n; j++)
        {
            arr[i][j] = ' ';
        }
        for(int j=3*n; j<4*n; j++)
        {
            arr[i][j] = '#';
        }
    }
    
    for(int i=0; i<4*n; i++)
    {
        for(int j=0; j<4*n; j++)
        {
            cout << arr[i][j];
        }
        cout << "\n";
    }
    
    
}