結果

問題 No.676 C0nvertPr0b1em
ユーザー bluemeganebluemegane
提出日時 2018-09-06 19:33:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 1,073 ms
コンパイル使用メモリ 64,984 KB
実行使用メモリ 22,592 KB
最終ジャッジ日時 2023-09-05 17:24:39
合計ジャッジ時間 3,720 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
20,540 KB
testcase_01 AC 49 ms
20,492 KB
testcase_02 AC 48 ms
20,340 KB
testcase_03 AC 49 ms
20,644 KB
testcase_04 AC 50 ms
20,340 KB
testcase_05 AC 50 ms
20,412 KB
testcase_06 AC 49 ms
20,424 KB
testcase_07 AC 50 ms
20,416 KB
testcase_08 AC 49 ms
20,372 KB
testcase_09 AC 49 ms
20,416 KB
testcase_10 AC 49 ms
18,552 KB
testcase_11 AC 50 ms
20,356 KB
testcase_12 AC 49 ms
20,516 KB
testcase_13 AC 50 ms
20,436 KB
testcase_14 AC 49 ms
20,472 KB
testcase_15 AC 49 ms
20,596 KB
testcase_16 AC 49 ms
20,432 KB
testcase_17 AC 49 ms
20,456 KB
testcase_18 AC 50 ms
22,568 KB
testcase_19 AC 49 ms
20,432 KB
testcase_20 AC 49 ms
20,504 KB
testcase_21 AC 49 ms
20,488 KB
testcase_22 AC 49 ms
22,480 KB
testcase_23 AC 50 ms
22,552 KB
testcase_24 AC 48 ms
20,408 KB
testcase_25 AC 51 ms
22,592 KB
testcase_26 AC 49 ms
20,528 KB
testcase_27 AC 50 ms
20,468 KB
testcase_28 AC 50 ms
22,460 KB
testcase_29 AC 49 ms
20,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var s = Console.ReadLine().Trim();
        var s1 = rep(s, 'I', '1');
        var s2 = rep(s1, 'l', '1');
        var s3 = rep(s2, 'O', '0');
        var s4 = rep(s3, 'o', '0');
        Console.WriteLine(s4);
    }
    public static string rep(string s, char a, char b) => s.Replace(a, b);
}
0