結果

問題 No.676 C0nvertPr0b1em
ユーザー Umekobuchacha
提出日時 2019-08-28 22:36:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 676 bytes
コンパイル時間 759 ms
コンパイル使用メモリ 103,552 KB
実行使用メモリ 18,560 KB
最終ジャッジ日時 2024-11-17 16:38:44
合計ジャッジ時間 2,223 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var Input = System.Console.ReadLine();
            var Output = "";

            for (var i = 0; i < Input.Length; i++)
            {
                if((Input[i] == 'I')||(Input[i]=='l'))
                {
                    Output += '1';
                    continue;
                }
                if ((Input[i] == 'O') || (Input[i] == 'o'))
                {
                    Output += '0';
                    continue;
                }
                Output += Input[i];
            }
            System.Console.WriteLine(Output);
        }
    }
}

0