結果

問題 No.676 C0nvertPr0b1em
ユーザー curryudon08curryudon08
提出日時 2020-06-16 13:25:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 610 bytes
コンパイル時間 2,262 ms
コンパイル使用メモリ 106,756 KB
実行使用メモリ 25,384 KB
最終ジャッジ日時 2023-09-16 10:57:06
合計ジャッジ時間 4,714 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
21,396 KB
testcase_01 AC 52 ms
23,412 KB
testcase_02 AC 52 ms
23,392 KB
testcase_03 AC 53 ms
21,460 KB
testcase_04 AC 52 ms
21,388 KB
testcase_05 AC 52 ms
21,516 KB
testcase_06 AC 52 ms
19,304 KB
testcase_07 AC 53 ms
21,292 KB
testcase_08 AC 52 ms
21,324 KB
testcase_09 AC 52 ms
23,512 KB
testcase_10 AC 53 ms
23,396 KB
testcase_11 AC 52 ms
23,392 KB
testcase_12 AC 52 ms
23,396 KB
testcase_13 AC 52 ms
21,280 KB
testcase_14 AC 51 ms
21,360 KB
testcase_15 AC 52 ms
21,536 KB
testcase_16 AC 52 ms
21,424 KB
testcase_17 AC 52 ms
25,384 KB
testcase_18 AC 52 ms
23,344 KB
testcase_19 AC 52 ms
21,348 KB
testcase_20 AC 52 ms
21,428 KB
testcase_21 AC 52 ms
21,480 KB
testcase_22 AC 52 ms
19,296 KB
testcase_23 AC 50 ms
21,408 KB
testcase_24 AC 51 ms
21,356 KB
testcase_25 AC 51 ms
23,488 KB
testcase_26 AC 51 ms
19,264 KB
testcase_27 AC 51 ms
21,400 KB
testcase_28 AC 51 ms
21,468 KB
testcase_29 AC 52 ms
19,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace _0676
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine().Trim();

            var a = new char[s.Length];
            for(var i = 0; i < s.Length; i++){
                if(s[i] == 'I' || s[i] == 'l'){
                    a[i] = '1';
                }else if(s[i] == 'O' || s[i] == 'o'){
                    a[i] = '0';
                }else{
                    a[i] = s[i];
                }
            }

            Console.WriteLine(string.Join("",a.Select(x => x.ToString())));
        }
    }
}
0