結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー nCandy
提出日時 2018-09-27 17:51:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 61,072 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 04:31:01
合計ジャッジ時間 899 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

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