結果

問題 No.88 次はどっちだ
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-03-23 01:15:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 589 bytes
コンパイル時間 791 ms
コンパイル使用メモリ 109,752 KB
実行使用メモリ 25,148 KB
最終ジャッジ日時 2024-04-09 03:35:09
合計ジャッジ時間 1,692 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
23,472 KB
testcase_01 AC 26 ms
23,268 KB
testcase_02 AC 22 ms
23,228 KB
testcase_03 AC 22 ms
23,276 KB
testcase_04 AC 22 ms
23,348 KB
testcase_05 AC 22 ms
25,148 KB
testcase_06 AC 23 ms
23,276 KB
testcase_07 AC 24 ms
23,600 KB
testcase_08 AC 24 ms
23,276 KB
testcase_09 AC 21 ms
21,296 KB
testcase_10 AC 22 ms
23,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
    public static void Main() {
        string name = Console.ReadLine();
        int stones = 0;
        for (int i = 0; i < 8; i++) {
            string line = Console.ReadLine();
            for (int j = 0; j < 8; j++) {
                if (line[j] != '.') stones++;
            }
        }
        if (stones % 2 == 0) {
            Console.WriteLine(name);
        } else {
            if (name == "oda") {
                Console.WriteLine("yukiko");
            } else {
                Console.WriteLine("oda");
            }
        }
    }
}
0