Submission
Status:
Compilation Error
Subtask/Task Score:
Score: 0
User: Kidmaiok
Problemset: เก็บกราฟเบื้องต้น
Language: cpp
Time: 0.000 second
Submitted On: 2026-10-09 11:53:40
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define space << ' '
#define nl << endl
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string up = "", body1 = "", body2 = "", leg = "";
int n;
cin >> n;
for(int i =0; i < n; i++){
up = up+ " ";
}
for(int i =0; i < (n*4)-1; i++){
up = up+ "#";
}
for(int i =0; i < n; i++){
cout << up;
cout << "\n";
}
for(int i =0; i < n*2; i++){
body1 = body1 + "#";
}
for(int i =0; i < n; i++){
cout << body1;
cout << "\n";
}
for(int i =0; i < n*4; i++){
body2 = body2 + "#";
}
for(int i =0; i < n; i++){
cout << body2;
cout << "\n";
}
for(int i =0; i < n; i++){
leg = leg + " ";
}
for(int i =0; i < n; i++){
leg = leg + "#";
}
for(int i =0; i < n; i++){
leg = leg + " ";
}
for(int i =0; i < n; i++){
leg = leg + "#";
}
for(int i =0; i < n; i++){
cout << leg;
cout << "\n";
}
}