結果

問題 No.601 Midpoint Erase
ユーザー yuppe19 😺yuppe19 😺
提出日時 2017-12-01 08:07:32
言語 Python2
(2.7.18)
結果
AC  
実行時間 259 ms / 2,000 ms
コード長 353 bytes
コンパイル時間 525 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 6,052 KB
最終ジャッジ日時 2023-08-24 18:37:39
合計ジャッジ時間 3,299 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,992 KB
testcase_01 AC 11 ms
5,884 KB
testcase_02 AC 10 ms
6,052 KB
testcase_03 AC 167 ms
6,000 KB
testcase_04 AC 185 ms
6,024 KB
testcase_05 AC 135 ms
6,000 KB
testcase_06 AC 79 ms
5,840 KB
testcase_07 AC 178 ms
6,024 KB
testcase_08 AC 152 ms
5,856 KB
testcase_09 AC 179 ms
5,852 KB
testcase_10 AC 48 ms
6,044 KB
testcase_11 AC 259 ms
5,960 KB
testcase_12 AC 121 ms
5,932 KB
testcase_13 AC 11 ms
5,856 KB
testcase_14 AC 10 ms
5,912 KB
testcase_15 AC 10 ms
5,932 KB
testcase_16 AC 11 ms
6,020 KB
testcase_17 AC 10 ms
5,948 KB
testcase_18 AC 10 ms
5,864 KB
testcase_19 AC 11 ms
5,936 KB
testcase_20 AC 10 ms
5,932 KB
testcase_21 AC 10 ms
6,052 KB
testcase_22 AC 11 ms
5,940 KB
testcase_23 AC 11 ms
5,840 KB
testcase_24 AC 11 ms
5,948 KB
testcase_25 AC 11 ms
5,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python2
# -*- coding: utf-8 -*-
# †
n = int(raw_input())
cnt = [[0 for j in xrange(2)] for i in xrange(2)] # cnt[2][2]
for _ in xrange(n):
    x, y = map(int, raw_input().split())
    cnt[x & 1][y & 1] += 1
pairs = 0
for i in xrange(2):
    for j in xrange(2):
        pairs += cnt[i][j] / 2
res = 'Alice' if pairs & 1 else 'Bob'
print res
0