結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー r2en_
提出日時 2017-03-19 14:15:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 780 ms
コンパイル使用メモリ 71,040 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 23:32:52
合計ジャッジ時間 1,028 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main(){
    string N;
    cin >> N;
    sort(N.rbegin(),N.rend());
    cout << N << endl;
    return 0;
}
0