Submission

Status:
-------P--

Score: 10

User: Nathlol2

Problemset: B.Nai/SiraSira

Language: cpp

Time: 0.003 second

Submitted On: 2025-01-21 11:24:00

#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--){
        string ans = "";
        for(int i = 0;i<n;i++){
            if(j <= a[i]){
                ans += "#### ";
            }else{
                ans += "     ";
            }
        }
        cout << ans << '\n' << ans << '\n';
    }
    
}