結果

問題 No.601 Midpoint Erase
ユーザー NoNo
提出日時 2018-04-28 13:51:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 200 ms / 2,000 ms
コード長 815 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 102,772 KB
実行使用メモリ 26,836 KB
最終ジャッジ日時 2023-09-10 07:46:37
合計ジャッジ時間 6,874 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
18,712 KB
testcase_01 AC 54 ms
20,860 KB
testcase_02 AC 54 ms
18,700 KB
testcase_03 AC 148 ms
26,828 KB
testcase_04 AC 164 ms
26,812 KB
testcase_05 AC 131 ms
26,836 KB
testcase_06 AC 95 ms
24,764 KB
testcase_07 AC 157 ms
26,796 KB
testcase_08 AC 142 ms
24,812 KB
testcase_09 AC 158 ms
24,960 KB
testcase_10 AC 78 ms
24,764 KB
testcase_11 AC 200 ms
24,768 KB
testcase_12 AC 121 ms
24,740 KB
testcase_13 AC 56 ms
20,708 KB
testcase_14 AC 57 ms
20,708 KB
testcase_15 AC 55 ms
20,672 KB
testcase_16 AC 56 ms
20,752 KB
testcase_17 AC 55 ms
20,700 KB
testcase_18 AC 55 ms
22,776 KB
testcase_19 AC 56 ms
20,644 KB
testcase_20 AC 54 ms
20,656 KB
testcase_21 AC 53 ms
20,608 KB
testcase_22 AC 53 ms
20,680 KB
testcase_23 AC 54 ms
20,732 KB
testcase_24 AC 52 ms
18,680 KB
testcase_25 AC 53 ms
18,808 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());
            int oo = 0;
            int oe = 0;
            int eo = 0;
            int ee = 0;

            for (int i = 1; i <= n; i++)
            {
                var ss = Console.ReadLine().Split();
                if (int.Parse(ss[0]) % 2 == 1 && int.Parse(ss[1]) % 2 == 1) oo++;
                if (int.Parse(ss[0]) % 2 == 1 && int.Parse(ss[1]) % 2 == 0) oe++;
                if (int.Parse(ss[0]) % 2 == 0 && int.Parse(ss[1]) % 2 == 1) eo++;
                if (int.Parse(ss[0]) % 2 == 0 && int.Parse(ss[1]) % 2 == 0)  ee++;
            }

            Console.WriteLine((oo / 2 + oe / 2 + eo / 2 + ee / 2) % 2 == 0 ? "Bob" : "Alice");
        }
    }
}
0