Submission
Status:
PPPPPPPPPP
Score: 100
User: Monasm
Problemset: อโมกุส
Language: cpp
Time: 0.002 second
Submitted On: 2024-09-25 19:00:05
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;cin >> n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout<<" ";
}
for(int j=0;j<n*3;j++){
cout <<"#";
}
cout << endl;
}
for(int i=0;i<n;i++){
for(int j=0;j<n*2;j++){
cout <<"#";
}
cout << endl;
}
for(int i=0;i<n;i++){
for(int j=0;j<n*4;j++){
cout <<"#";
}
cout << endl;
}
for(int i=0;i<n;i++){
int cnt = 0;
for(int j=0;j<n*4;j++){
if(cnt == n){
while((cnt--)>0){
j++;
cout <<"#";
}
cnt = 0;
}
else{
cnt++;cout<<" ";
}
}
if(n == 1){
cout<<"#";
}
cout << endl;
}
return 0;
}