結果

問題 No.601 Midpoint Erase
ユーザー Bioinfo_KBioinfo_K
提出日時 2017-12-01 21:52:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 552 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,976 KB
実行使用メモリ 8,676 KB
最終ジャッジ日時 2023-08-24 18:41:13
合計ジャッジ時間 2,488 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,624 KB
testcase_01 AC 18 ms
8,580 KB
testcase_02 AC 18 ms
8,596 KB
testcase_03 AC 100 ms
8,572 KB
testcase_04 AC 110 ms
8,532 KB
testcase_05 AC 85 ms
8,628 KB
testcase_06 AC 55 ms
8,564 KB
testcase_07 AC 107 ms
8,492 KB
testcase_08 AC 94 ms
8,572 KB
testcase_09 AC 108 ms
8,440 KB
testcase_10 AC 38 ms
8,536 KB
testcase_11 AC 150 ms
8,492 KB
testcase_12 AC 78 ms
8,664 KB
testcase_13 AC 18 ms
8,676 KB
testcase_14 AC 17 ms
8,604 KB
testcase_15 AC 17 ms
8,560 KB
testcase_16 AC 18 ms
8,596 KB
testcase_17 AC 17 ms
8,568 KB
testcase_18 AC 18 ms
8,468 KB
testcase_19 AC 18 ms
8,564 KB
testcase_20 AC 17 ms
8,568 KB
testcase_21 AC 17 ms
8,500 KB
testcase_22 AC 18 ms
8,652 KB
testcase_23 AC 17 ms
8,488 KB
testcase_24 AC 17 ms
8,624 KB
testcase_25 AC 18 ms
8,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,collections
sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n = I()
g = [0]*4
for i in range(n):
    x,y = Is()
    if x%2==0:
        if y%2==0:
            g[0] += 1
        else:
            g[1] += 1
    else:
        if y%2==0:
            g[2] += 1
        else:
            g[3] += 1
sum = 0
for e in g:
    sum += e//2
if sum%2 == 0:
    print("Bob")
else:
    print("Alice")
0