Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: MaYangPhanTe
Problemset: อโมกุส
Language: cpp
Time: 0.003 second
Submitted On: 2026-03-19 14:42:21
#include <bits/stdc++.h>
using namespace std;
void draw() {
int n;
cin >> n;
for (int i = 0; i < 4*n; i++) {
for (int j = 0; j < 4*n; j++) {
if (i <= n-1)
if (j > n-1 && j <= n*4-1) {
cout << "#";
}
else cout << " ";
else if (i <= n*2-1)
if (j <= n*2-1) {
cout << "#";
}
else cout << " ";
else if (i <= n*3-1)
cout << "#";
else if (i <= n*4-1)
if((j > n-1 && j <= n*2-1) || (j > n*3-1 && j <= n*4-1)) cout << "#";
else cout << " ";
}
cout << "\n";
}
}
int main() {
draw();
}