結果

問題 No.88 次はどっちだ
ユーザー しらゆき
提出日時 2015-11-19 14:24:22
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 5,000 ms
コード長 555 bytes
コンパイル時間 788 ms
コンパイル使用メモリ 110,708 KB
実行使用メモリ 25,396 KB
最終ジャッジ日時 2024-09-13 17:01:36
合計ジャッジ時間 1,633 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        string s = Console.ReadLine();

        int cnt = 0;
        string ans = "";

        for(int i = 0; i < 8; i++)
        {
            string t = Console.ReadLine();
            for (int j = 0; j < 8; j++)
            {
                if (t[j] != '.') cnt++;
            }
        }

        if (cnt % 2 == 0) ans = s;
        else
        {
            if (s == "oda") ans = "yukiko";
            else ans = "oda";
        }

        Console.WriteLine(ans);
    }
}
0