結果
問題 |
No.88 次はどっちだ
|
ユーザー |
|
提出日時 | 2020-04-29 20:47:12 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 794 bytes |
コンパイル時間 | 843 ms |
コンパイル使用メモリ | 111,424 KB |
実行使用メモリ | 26,260 KB |
最終ジャッジ日時 | 2024-11-29 19:40:25 |
合計ジャッジ時間 | 1,679 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string s = Console.ReadLine(); string field = ""; for(int i = 0; i < 8; i++) { field += Console.ReadLine(); } if(field.ToCharArray().Count(c => c == '.') % 2 == 0) { if(s == "oda") { Console.WriteLine($"oda"); } else { Console.WriteLine($"yukiko"); } } else { if(s != "oda") { Console.WriteLine($"oda"); } else { Console.WriteLine($"yukiko"); } } } }