Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: MyYammGods

Problemset: อโมกุส

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-05 20:56:39

#include <bits/stdc++.h>
using namespace std;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int a,i,count=0;
    char amongus[300][300];
    cin >> a;
    //1/4
    while(count != a){
        if(count == 0){
            i = 0;
        }else{
            i = a*0 + 1;
        }
        for(int j=0;j<a*4;j++){
            if(j<a){
                amongus[i][j]=' ';
            }else{
                amongus[i][j]='#';
            }
            cout << amongus[i][j];
        }
        count++;
        cout << endl;
    }
    //2/4
    count = 0;
    while(count != a){
        for(int j=0;j<a*2;j++){
            i = a;
            amongus[i][j]='#';
            cout << amongus[i][j];
        }
        cout << endl;
        count++;
    }
    //3/4
    count=0;
    while(count != a){
        for(int j=0;j<a*4;j++){
            i = a*2 + 1;
            amongus[i][j]='#';
            cout << amongus[i][j];
        }
        cout << endl;
        count++;
    }
    //4/4
    count = 0;
    while(count != a){
        i = a*3 + 1;
        for(int j=0;j<a*4;j++){
            if(j%(a*2)<a){
                amongus[i][j]=' ';
            }else{
                amongus[i][j]='#';
            }
        cout << amongus[i][j];
        }
    cout << endl;
    count++;
    }
}