Submission

Status:
PPPPPPPPPP

Score: 100

User: NovemNotes

Problemset: B.Nai/SiraSira

Language: cpp

Time: 0.004 second

Submitted On: 2024-10-15 10:00:16

#include <bits/stdc++.h>
using namespace std;
char table[49][600];
int mx = INT_MIN;
void draw(int stx,int h){
	for(int i = 0;i<h;i++){
		for(int j=stx;j<stx+4;j++){
			table[i][j]='#';
		}
	}
}
int main(){
	cin.tie(nullptr)->sync_with_stdio(false);
	int n;
	int st=0;
	cin >> n;
	for(int i=0;i<n;i++){
		int x;cin >> x;
		draw(st,2*x);
		mx=max(mx,2*x);
		st+=6;
	}
	for(int i=mx-1;i>=0;i--){
		for(int j=0;j<st;j++){
			if(table[i][j]=='#'){
				cout << '#';
			}else{
				cout << " ";
			}
		}cout << "\n";
	}
	return 0;
}