結果
問題 | 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 sysinput = sys.stdin.buffer.readlinesys.setrecursionlimit(10 ** 7)oo = 0ee = 0oe = 0eo = 0N = int(input())for _ in range(N):x, y = map(int, input().split())x %= 2y %= 2if (x, y) == (0, 0):ee += 1elif (x, y) == (1, 1):oo += 1elif (x, y) == (0, 1):eo += 1else:oe += 1ee //= 2oo //= 2oe //= 2eo //= 2s = ee + oo + eo + oeif s % 2 == 1:print("Alice")else:print("Bob")