結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
![]() |
提出日時 | 2021-05-30 11:08:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 199 ms / 2,000 ms |
コード長 | 468 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-08 20:40:48 |
合計ジャッジ時間 | 3,784 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import sys input = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 7) oo = 0 ee = 0 oe = 0 eo = 0 N = int(input()) for _ in range(N): x, y = map(int, input().split()) x %= 2 y %= 2 if (x, y) == (0, 0): ee += 1 elif (x, y) == (1, 1): oo += 1 elif (x, y) == (0, 1): eo += 1 else: oe += 1 ee //= 2 oo //= 2 oe //= 2 eo //= 2 s = ee + oo + eo + oe if s % 2 == 1: print("Alice") else: print("Bob")