結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             mban
                         | 
                    
| 提出日時 | 2016-11-07 12:24:47 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 21 ms / 5,000 ms | 
| コード長 | 706 bytes | 
| コンパイル時間 | 930 ms | 
| コンパイル使用メモリ | 112,140 KB | 
| 実行使用メモリ | 25,380 KB | 
| 最終ジャッジ日時 | 2024-11-25 03:49:27 | 
| 合計ジャッジ時間 | 1,680 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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.Collections.Generic;
using System.Linq;
class Magatro
{
    static void Main()
    {
        string S = Console.ReadLine();
        string[] B = new string[8];
        for(int i = 0; i < 8; i++)
        {
            B[i] = Console.ReadLine();
        }
        int cnt = 0;
        for(int i = 0; i < 8; i++)
        {
            for(int j = 0; j < 8; j++)
            {
                if (B[i][j] != '.')
                {
                    cnt++;
                }
            }
        }
        if ((S == "oda"?0+cnt:1+cnt)%2==0)
        {
            Console.WriteLine("oda");
        }
        else
        {
            Console.WriteLine("yukiko");
        }
    }
}
            
            
            
        
            
mban