結果

問題 No.1469 programing
ユーザー fukafukatani
提出日時 2021-04-09 21:21:43
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 47 ms / 3,000 ms
コード長 309 bytes
コンパイル時間 13,425 ms
コンパイル使用メモリ 378,976 KB
実行使用メモリ 31,056 KB
最終ジャッジ日時 2024-06-25 03:52:44
合計ジャッジ時間 14,852 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut s = read::<String>().chars().collect::<Vec<_>>();
    s.dedup();
    let s = s.iter().collect::<String>();
    println!("{}", s);
}

fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}
0