結果
| 問題 |
No.676 C0nvertPr0b1em
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-28 22:27:02 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 676 bytes |
| コンパイル時間 | 622 ms |
| コンパイル使用メモリ | 112,628 KB |
| 実行使用メモリ | 27,708 KB |
| 最終ジャッジ日時 | 2024-11-17 16:38:41 |
| 合計ジャッジ時間 | 1,843 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 26 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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]=='i'))
{
Output += '1';
continue;
}
if ((Input[i] == 'O') || (Input[i] == 'o'))
{
Output += '0';
continue;
}
Output += Input[i];
}
System.Console.WriteLine(Output);
}
}
}