結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-01 08:07:32 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 275 ms / 2,000 ms |
| コード長 | 353 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-12-23 03:16:51 |
| 合計ジャッジ時間 | 3,250 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / 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