Submission
Status:
PPPPPPPPPP
Score: 100
User: Sense143
Problemset: อโมกุส
Language: cpp
Time: 0.002 second
Submitted On: 2024-09-25 14:25:05
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
ios::sync_with_stdio(false); cin.tie(0);
int n; cin >> n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout << " ";
}
for(int j=0;j<3*n;j++){
cout << '#';
}
cout << endl;
}
for(int i=0;i<n;i++){
for(int j=0;j<2*n;j++){
cout << '#';
}
cout << endl;
}
for(int i=0;i<n;i++){
for(int j=0;j<4*n;j++){
cout << '#';
}
cout << endl;
}
for(int i=0;i<n;i++){
for(int j=0;j<4;j++){
for(int k=0;k<n;k++){
if(j%2 == 0){
cout << " ";
}
else{
cout << '#';
}
}
}
cout << endl;
}
}