๐Ÿ•๏ธ ICPC Sinchon

[BOJ][C++] ๋ฐฑ์ค€ 11931๋ฒˆ: ์ˆ˜ ์ •๋ ฌํ•˜๊ธฐ 4

์„ ๋‹ฌ 2023. 1. 11. 17:59
๋ฐ˜์‘ํ˜•

 

// Authored by : seondal
// Co-authored by : -

// #include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    
    int n;
    cin >> n;
    vector<int> v(n);
    for(int i=0; i<n; i++)
        cin >> v[i];
    
    sort(v.begin(), v.end(), greater<>{});
    
    for(int i=0; i<n; i++)
        cout << v[i] << "\n";
    
    return 0;
}

/*
 */
๋ฐ˜์‘ํ˜•