Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: duduh
Problemset: อโมกุส
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-22 20:18:36
#include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
for(int i=1;i<=n;i++) {
for(int j=1;j<=n;j++) cout << ' ';
for(int j=1;j<=n;j++) cout << "###";
cout << endl;
}
for(int i=1;i<=n;i++) {
for(int j=1;j<=n;j++) cout << "##";
cout << endl;
}
for(int i=1;i<=n;i++) {
for(int j=1;j<=n;j++) cout << "####";
cout << endl;
}
for(int i=1;i<=n;i++) {
for(int j=1;j<=n;j++) cout << ' ';
for(int j=1;j<=n;j++) cout << "#";
for(int j=1;j<=n;j++) cout << ' ';
for(int j=1;j<=n;j++) cout << "#";
cout << endl;
}
return 0;
}