Submission
Status:
-P--------
Subtask/Task Score:
10/100
Score: 10
User: Quinruj
Problemset: อโมกุส
Language: cpp
Time: 0.005 second
Submitted On: 2025-09-27 19:50:01
#include <bits/stdc++.h>
using namespace std;
string a = "###",b = "##",c = "####";
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;cin>>n;
for (int i = 0;i<n;i++){
for (int j = 0;j<n;j++) cout << ' ';
for (int j = 0;j<n;j++) cout << a;
cout << '\n';
}
for (int i = 0;i<n;i++){
for (int j = 0;j<n;j++) cout << b;
cout << '\n';
}
for (int i = 0;i<n;i++){
for (int j = 0;j<n;j++) cout << c;
cout << '\n';
}
for (int i = 0;i<n;i++){
for (int j = 0;j<n;j++){
for (int k = 0;k<n;k++) cout << ' ';
for (int k = 0;k<n;k++) cout << '#';
}cout << '\n';
}
}