結果

問題 No.676 C0nvertPr0b1em
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-05-08 02:08:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 514 bytes
コンパイル時間 2,097 ms
コンパイル使用メモリ 102,172 KB
実行使用メモリ 22,612 KB
最終ジャッジ日時 2023-09-05 17:12:36
合計ジャッジ時間 4,489 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
20,456 KB
testcase_01 AC 49 ms
20,524 KB
testcase_02 AC 49 ms
20,656 KB
testcase_03 AC 51 ms
22,608 KB
testcase_04 AC 56 ms
20,484 KB
testcase_05 AC 50 ms
22,452 KB
testcase_06 AC 49 ms
20,504 KB
testcase_07 AC 49 ms
20,532 KB
testcase_08 AC 49 ms
20,516 KB
testcase_09 AC 48 ms
20,560 KB
testcase_10 AC 51 ms
20,460 KB
testcase_11 AC 50 ms
22,456 KB
testcase_12 AC 50 ms
22,604 KB
testcase_13 AC 50 ms
22,612 KB
testcase_14 AC 49 ms
18,600 KB
testcase_15 AC 48 ms
20,600 KB
testcase_16 AC 50 ms
20,460 KB
testcase_17 AC 48 ms
18,372 KB
testcase_18 AC 48 ms
20,528 KB
testcase_19 AC 48 ms
20,620 KB
testcase_20 AC 49 ms
20,612 KB
testcase_21 AC 50 ms
18,504 KB
testcase_22 AC 50 ms
20,656 KB
testcase_23 AC 48 ms
20,472 KB
testcase_24 AC 48 ms
20,424 KB
testcase_25 AC 48 ms
20,604 KB
testcase_26 AC 48 ms
20,584 KB
testcase_27 AC 48 ms
20,648 KB
testcase_28 AC 48 ms
20,604 KB
testcase_29 AC 48 ms
22,580 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Change{
    public static void Main(string[] args){
        string str=Console.ReadLine();
        var hoge='a';
        foreach(char c in str){
            if(c=='I'||c=='l')
            {
                hoge='1';
            }
            else if(c=='O'||c=='o')
            {
                hoge='0';
            }
            else{
                Console.Write(c);
                continue;
            }
            Console.Write(hoge);
        }
        Console.WriteLine();
    }
} 
0