結果

問題 No.676 C0nvertPr0b1em
ユーザー とばり
提出日時 2018-08-13 09:27:03
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 11,859 ms
コンパイル使用メモリ 404,868 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 12:52:30
合計ジャッジ時間 13,211 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    let mut input = String::new();
    io::stdin().read_line(&mut input).unwrap();

    for c in input.trim().chars() {
        let c = if c == 'I' || c == 'l' {
                    '1'
                } else if c == 'O' || c == 'o' {
                    '0'
                } else {
                    c
                };
        print!("{}", c);
    }
    println!();
}
0