結果
問題 | No.601 Midpoint Erase |
ユーザー |
|
提出日時 | 2017-12-01 23:49:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 203 ms / 2,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 868 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 84,352 KB |
最終ジャッジ日時 | 2024-12-23 03:24:53 |
合計ジャッジ時間 | 4,182 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
n = int(input())al = [tuple(int(i) for i in input().split()) for _ in range(n)]cnt = [0]*4for a in al:if a[0] % 2 == 0 and a[1] % 2 == 0:cnt[0] += 1if a[0] % 2 == 1 and a[1] % 2 == 0:cnt[1] += 1if a[0] % 2 == 0 and a[1] % 2 == 1:cnt[2] += 1if a[0] % 2 == 1 and a[1] % 2 == 1:cnt[3] += 1ans = sum(map(lambda x: x//2, cnt))print("Alice" if ans % 2 == 1 else "Bob")