結果
| 問題 | No.676 C0nvertPr0b1em |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-02 14:11:52 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 500 bytes |
| 記録 | |
| コンパイル時間 | 15,412 ms |
| コンパイル使用メモリ | 169,852 KB |
| 実行使用メモリ | 184,788 KB |
| 最終ジャッジ日時 | 2025-12-02 14:12:15 |
| 合計ジャッジ時間 | 11,547 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (101 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine()!;
string output = "";
foreach (char c in input)
{
if (c == 'I' || c == 'l')
{
output += "1";
}
else if(c == 'O' || c == 'o')
{
output += "0";
}
else
{
output += c;
}
}
Console.WriteLine(output);
}
}