結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー h_noson
提出日時 2015-12-24 01:28:48
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 664 ms
コンパイル使用メモリ 60,760 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-18 22:31:58
合計ジャッジ時間 1,034 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "algorithm"
using namespace std;

int main(){
    string n;
    cin >> n;
    sort(n.begin(),n.end(),greater<char>());
    cout << n << endl;
    return 0;
}
0