Submission
Status:
PPPPPPPPPP
Score: 100
User: Chinnaban
Problemset: อโมกุส
Language: cpp
Time: 0.003 second
Submitted On: 2024-10-30 19:51:39
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
for (int i=1;i<=n*4;i++){
for (int j=1;j<=n*4;j++){
if (i <= n){
if (j <= n){
cout << " ";
}
else {
cout << "#";
}
}
else if (i <= n*2 && i > n){
if (j > n*2){
cout << " ";
}
else {
cout << "#";
}
}
else if (i <= n*4 && i>n*3){
if (j <= n || (j > n*2 && j <= n*3)){
cout << " ";
}
else {
cout << "#";
}
}
else {
cout << "#";
}
}
cout << endl;
}
}