結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
|
提出日時 | 2022-09-16 06:00:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 133 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 620 ms |
コンパイル使用メモリ | 82,052 KB |
実行使用メモリ | 85,876 KB |
最終ジャッジ日時 | 2024-12-18 00:25:45 |
合計ジャッジ時間 | 3,860 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) XY = [tuple(map(int,input().split())) for _ in range(N)] M = [(x%2,y%2) for x,y in XY] C = Counter(M) ans = 0 for v in C.values(): ans += v//2 if ans%2==0: print('Bob') else: print('Alice')