結果

問題 No.601 Midpoint Erase
ユーザー maspymaspy
提出日時 2020-01-22 22:09:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 20,548 KB
最終ジャッジ日時 2023-09-23 02:48:17
合計ジャッジ時間 2,780 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,952 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 16 ms
7,836 KB
testcase_03 AC 66 ms
15,836 KB
testcase_04 AC 73 ms
17,192 KB
testcase_05 AC 56 ms
14,372 KB
testcase_06 AC 38 ms
11,520 KB
testcase_07 AC 74 ms
16,400 KB
testcase_08 AC 63 ms
15,316 KB
testcase_09 AC 72 ms
16,856 KB
testcase_10 AC 28 ms
9,912 KB
testcase_11 AC 97 ms
20,548 KB
testcase_12 AC 52 ms
13,648 KB
testcase_13 AC 16 ms
7,764 KB
testcase_14 AC 16 ms
7,852 KB
testcase_15 AC 15 ms
7,776 KB
testcase_16 AC 16 ms
7,768 KB
testcase_17 AC 16 ms
7,804 KB
testcase_18 AC 16 ms
7,776 KB
testcase_19 AC 16 ms
7,932 KB
testcase_20 AC 16 ms
7,832 KB
testcase_21 AC 15 ms
7,712 KB
testcase_22 AC 16 ms
7,948 KB
testcase_23 AC 16 ms
7,940 KB
testcase_24 AC 15 ms
7,836 KB
testcase_25 AC 15 ms
7,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())
m = map(int,read().split())
XY = zip(m,m)

counter = [0] * 4
for x,y in XY:
    x &= 1
    y &= 1
    counter[x+y+y] += 1

can_del = sum(x//2 for x in counter)

answer = 'Bob' if can_del % 2 == 0 else 'Alice'
print(answer)
0