結果
| 問題 | No.601 Midpoint Erase |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-01 08:07:32 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 2,000 ms |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 77,464 KB |
| 最終ジャッジ日時 | 2025-12-04 00:48:30 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#!/usr/bin/python2
# -*- coding: utf-8 -*-
# †
n = int(raw_input())
cnt = [[0 for j in xrange(2)] for i in xrange(2)] # cnt[2][2]
for _ in xrange(n):
x, y = map(int, raw_input().split())
cnt[x & 1][y & 1] += 1
pairs = 0
for i in xrange(2):
for j in xrange(2):
pairs += cnt[i][j] / 2
res = 'Alice' if pairs & 1 else 'Bob'
print res