Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: tha_smith
Problemset: Femboy
Language: cpp
Time: 0.034 second
Submitted On: 2025-10-09 21:47:08
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
for(int i=1; i<=5*N;i++) {
//cout << i << endl;
for(int j=1; j<=5*N; j++) {
if(((i>N && i<=2*N) && j>N) || (i>3*N && j>N)) {
cout << " ";
}
else {
cout << "#";
}
}
cout << " ";
for(int j=1; j<=5*N; j++) {
if(((i>N && i<=2*N) && j>N) || ((i>3*N && i<=(5*N)-N) && j>N)) {
cout << " ";
}
else {
cout << "#";
}
}
cout << " ";
for(int j=1; j<=5*N; j++) {
if(((j>N && j<=(5*N)-N) && i<=N) || ((j>2*N && j<=(5*N)-(2*N))&&(i>N && i<=2*N)) || ((j>N && j<=(5*N)-(3*N))&&(i>2*N && i<=3*N)) || ((j>3*N && j<=(5*N)-N)&&(i>2*N && i<=3*N)) || (i>3*N && (j>N && j<=(5*N)-N))) {
cout << " ";
}
else {
cout << "#";
}
}
cout << " ";
for(int j=1; j<=5*N; j++) {
if((i<=N && j>4*N) || ((i>N && i<=2*N) && (j>N && j<=(5*N)-N)) || ((i>2*N && i<=(5*N)-2*N) && j>4*N) || ((i>3*N && i<=(5*N)-N) && (j>N && j<=(5*N)-N)) || (i>4*N && j>4*N)) {
cout << " ";
}
else {
cout << "#";
}
}
cout << " ";
for(int j=1; j<=5*N; j++) {
if((i>N && i<=(5*N)-N) && (j>N && j<=(5*N)-N)) {
cout << " ";
}
else {
cout << "#";
}
}
cout << " ";
for(int j=1; j<=5*N; j++) {
if(((j>N && j<=(5*N)-N) && i<=N) || (j<=N && (i>N && i<=2*N)) || ((j>2*N && j<=3*N) && (i>N && i<=2*N)) || (j>4*N && (i>N && i<=2*N)) || (j<=2*N && i>2*N) || (j>3*N && i>2*N)) {
cout << " ";
}
else {
cout << "#";
}
}
cout << endl;
}
}