🏕️ PS (BOJ)
[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;
}
/*
*/
반응형