結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
Bioinfo_K
|
| 提出日時 | 2017-12-01 21:52:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 177 ms / 2,000 ms |
| コード長 | 552 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-23 03:21:17 |
| 合計ジャッジ時間 | 2,871 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
import sys,collections
sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()
n = I()
g = [0]*4
for i in range(n):
x,y = Is()
if x%2==0:
if y%2==0:
g[0] += 1
else:
g[1] += 1
else:
if y%2==0:
g[2] += 1
else:
g[3] += 1
sum = 0
for e in g:
sum += e//2
if sum%2 == 0:
print("Bob")
else:
print("Alice")
Bioinfo_K