結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー cra77756176
提出日時 2022-12-07 00:25:45
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 11,632 ms
コンパイル使用メモリ 383,036 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 11:29:01
合計ジャッジ時間 12,718 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let mut n: Vec<char> = n.trim().chars().collect();

    n.sort_unstable();
    n.reverse();

    println!("{}", n.iter().collect::<String>());
}
0