Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: limsan20122
Problemset: อโมกุส
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-01 20:58:47
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int x=0;
cin >> x;
for(int i=0;i<(x*4);i++){
if(i<x){
for(int j=0;j<x;j++){
cout << " ";
}
for(int j=0;j<(3*x);j++){
cout << "#";
}
cout << "\n";
}else if(i<(x*2)){
for(int j=0;j<(x*2);j++){
cout << "#";
}
for(int j=0;j<(x*2);j++){
cout << " ";
}
cout << "\n";
}else if(i<(x*3)){
for(int j=0;j<(x*4);j++){
cout << "#";
}
cout << "\n";
}else{
for(int j=0;j<4;j++){
if(j%2==0){
for(int k=0;k<x;k++){
cout << " ";
}
}else{
for(int k=0;k<x;k++){
cout << "#";
}
}
}
cout << "\n";
}
}
return 0;
}