結果

問題 No.88 次はどっちだ
ユーザー kmtrc130kmtrc130
提出日時 2017-05-15 14:12:57
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 511 bytes
コンパイル時間 2,259 ms
コンパイル使用メモリ 106,928 KB
実行使用メモリ 23,504 KB
最終ジャッジ日時 2023-10-14 13:12:16
合計ジャッジ時間 3,718 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
21,448 KB
testcase_01 AC 51 ms
19,408 KB
testcase_02 AC 50 ms
23,440 KB
testcase_03 AC 50 ms
23,504 KB
testcase_04 AC 50 ms
21,472 KB
testcase_05 AC 51 ms
23,484 KB
testcase_06 AC 51 ms
23,428 KB
testcase_07 AC 51 ms
21,384 KB
testcase_08 AC 51 ms
23,440 KB
testcase_09 AC 73 ms
21,388 KB
testcase_10 AC 51 ms
21,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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[] args)
    {
        string S = Console.ReadLine();
        string[] playerBW = (S == "oda" ? new string[] { "oda", "yukiko" } : new string[] { "yukiko", "oda" });

        int stone = 0;
        string B;
        for (int i = 0; i < 8; i++)
        {
            B = Console.ReadLine();
            stone += B.Count(s => s != '.');
        }

        Console.WriteLine("{0}", (stone % 2 == 0 ? playerBW[0] : playerBW[1]));
    }
}
0