Submission

Status:

[PPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: tull

Problemset: ภูเขา

Language: cpp

Time: 0.003 second

Submitted On: 2026-06-26 12:34:03

// Online C++ compiler to run C++ program online
#include <bits/stdc++.h>
using namespace std;
int main() {
    cin.tie(nullptr)->sync_with_stdio(false);
    int n,mx=0;
    cin>>n;
    vector<int>a(n);
    for(auto&e:a){
        cin>>e;
        mx=max(mx,e);
    }
    auto write=[&](int lv,int w){
        if(lv>w){
            cout<<string(w*2,'.');
        }else{
            cout<<string(lv-1,'.')<<'/'<<string((w-lv)*2,'.')<<'\\'<<string(lv-1,'.');
        }
    };
    for(int i=mx;i>=1;--i){
        for(auto&e:a){
            write(i,e);
        }
        cout<<'\n';
    }
    return 0;
}