結果

問題 No.676 C0nvertPr0b1em
ユーザー tsunekoh
提出日時 2019-05-04 14:38:40
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 16,410 ms
コンパイル使用メモリ 388,660 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 14:08:40
合計ジャッジ時間 15,865 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() -> Result<(), std::io::Error> {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let input_str = s.trim().to_string();

    let result_str: String = input_str.chars().into_iter().map(
        |e| {
            match e {
                'I' => '1',
                'l' => '1',
                'O' => '0',
                'o' => '0',
                _ => e,
            }
        }).collect();

    println!("{}", result_str);

    Ok(())
}
0