Submission
Status:
PPPPPPPPPP
Score: 100
User: fluke
Problemset: B.Nai/SiraSira
Language: cpp
Time: 0.003 second
Submitted On: 2025-03-01 16:14:32
#include <bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pii pair<int,int>
#define emb emplace_back
#define em emplace
#define pb push_back
#define all(x) x.begin(),x.end()
#define DB cout<<"\n";system("pause");
using namespace std;
int main(){
//ios::sync_with_stdio(false);cin.tie(0);
int n;
cin>>n;
vector <int> tall(n);
int tall_max = 0;
for(int i=0 ;i<n;i++){
cin>>tall[i];
tall_max = max(tall_max , tall[i]);
}
//cout<<tall_max;
//DB
vector <string> mp(tall_max*2 , string (n*4 + 2*(n-1) , ' '));
int start = 0 ;
for(auto x : tall){
for(int j=tall_max*2-1 ; j>=tall_max*2 - x*2 ; j--){
//cout<<j<<" ";
//DB
mp[j][start] = '#';
mp[j][start+1] = '#';
mp[j][start+2] = '#';
mp[j][start+3] = '#';
}
start += 6;
}
for(auto x : mp){
for(auto y : x)cout<<y;
cout<<"\n";
}
}