結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Maeda
                         | 
                    
| 提出日時 | 2025-04-09 09:48:31 | 
| 言語 | C#  (.NET 8.0.404)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 49 ms / 5,000 ms | 
| コード長 | 1,052 bytes | 
| コンパイル時間 | 7,578 ms | 
| コンパイル使用メモリ | 169,464 KB | 
| 実行使用メモリ | 186,476 KB | 
| 最終ジャッジ日時 | 2025-04-09 09:48:40 | 
| 合計ジャッジ時間 | 9,046 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (96 ミリ秒)。 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 firstMove = Console.ReadLine();
            string secondMove = "";
            if(firstMove == "oda")
            {
                secondMove = "yukiko";
            }
            else
            {
                secondMove = "oda";
            }
                int notCount = 0;
            for(int i = 0; i < 8; i++)
            {
                string line = Console.ReadLine();
                notCount += NotAvailable(line);
            }
            if (notCount%2 == 0)
            {
                Console.WriteLine(firstMove);
            }
            else
            {
                Console.WriteLine(secondMove);
            }
        }
        private static int NotAvailable(string line)
        {
            int count = 0;
            for(int i = 0;i < 8; i++)
            {
                if (line[i] == '.')
                {
                    count++;
                }
            }
            return count;
        }
    }
            
            
            
        
            
Maeda