Submission
Status:
----------
Score: 0
User: Nani
Problemset: อโมกุส
Language: cpp
Time: 0.003 second
Submitted On: 2024-10-25 11:08:50
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
for(int j = 0; j < n; j++){
for(int i = 0; i < n; i++){
cout << " ";
}
for(int i = 0 ; i < n*3; i++){
cout << "*";
}
cout << endl;
}
for(int i = 0; i < n; i++){
for(int j = 0; j < n*2; j++){
cout << "*";
}
cout << endl;
}
for(int i = 0 ; i < n; i++){
for(int j = 0; j < n*4; j++){
cout << "*";
}
cout << endl;
}
for(int i = 0 ; i < n; i++){
for(int k = 0; k < 2; k++){
for(int j = 0; j < n; j++){
cout << " ";
}
for(int j = 0; j < n; j++){
cout << "*";
}
}
cout << endl;
}
}