๐Ÿ•๏ธ ICPC Sinchon

[BOJ][C++] ๋ฐฑ์ค€ 1427๋ฒˆ: ์†ŒํŠธ์ธ์‚ฌ์ด๋“œ

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

https://www.acmicpc.net/problem/1427

 

1427๋ฒˆ: ์†ŒํŠธ์ธ์‚ฌ์ด๋“œ

์ฒซ์งธ ์ค„์— ์ •๋ ฌํ•˜๋ ค๊ณ  ํ•˜๋Š” ์ˆ˜ N์ด ์ฃผ์–ด์ง„๋‹ค. N์€ 1,000,000,000๋ณด๋‹ค ์ž‘๊ฑฐ๋‚˜ ๊ฐ™์€ ์ž์—ฐ์ˆ˜์ด๋‹ค.

www.acmicpc.net

 

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

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

using namespace std;

typedef pair<int, string> ci;

int main() {
    ios_base::sync_with_stdio(false); cin.tie(NULL);
    
    string input;
    cin >> input;
    
    sort(input.begin(), input.end(), greater<>{});
    
    cout << input;
    
    return 0;
}

/*
 */

 

๋ฐ˜์‘ํ˜•