Submission

Status:
PPPPPPPPPP

Score: 100

User: Nathlol2

Problemset: B.Nai/SiraSira

Language: cpp

Time: 0.002 second

Submitted On: 2025-01-21 11:31:10

#include <bits/stdc++.h>
using namespace std;

int32_t main() {
	ios::sync_with_stdio(false);
	cin.tie(NULL);
    
    int n;
    cin >> n;
    int mx = 0;
    vector<int> a(n);
    for(int i = 0;i<n;i++){
        cin >> a[i];
        if(a[i] > mx){
            mx = a[i];
        }
    }
    for(int j = mx;j>0;j--){
        for(int k = 0;k<2;k++){
            for(int i = 0;i<n;i++){
                if(j <= a[i]){
                    cout << "####  ";
                }else{
                    cout << "      ";
                }
            }
            cout << '\n';
        }
    }
    
}