Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: kusir_laman
Problemset: อโมกุส
Language: cpp
Time: 0.002 second
Submitted On: 2026-08-22 21:56:05
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);ios::sync_with_stdio(0);
int n;
cin >> n;
int sec = 0;
for(int i=1;i<=4*n;i++){
if(sec==0){
for(int j=0;j<4*n;j++){
if(j<n){
cout << " ";
}
else{
cout << "#";
}
}
}
if(sec==1){
for(int j=0;j<2*n;j++){
cout << "#";
}
}
if(sec==2){
for(int j=0;j<4*n;j++){
cout << "#";
}
}
if(sec==3){
for(int j=1;j<=4*n;j++){
if((j>=2+n-1 && j<=2+n-1+n-1) || (j>=4+n-1+n-1+n-1 && j<=4*n)){
cout << "#";
}
else{
cout << " ";
}
}
}
if(i%n==0){sec+=1;}
cout << "\n";
}
return 0;
}