結果
| 問題 | No.601 Midpoint Erase |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-08 00:47:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 249 ms / 2,000 ms |
| コード長 | 404 bytes |
| 記録 | |
| コンパイル時間 | 650 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-23 03:04:21 |
| 合計ジャッジ時間 | 4,988 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
n = int(input())
odd_even_list = [0]*4
for i in range(n):
x, y = [int(v) for v in input().split() ]
if x % 2 == 0:
if y % 2 == 0:
odd_even_list[0] += 1
else:
odd_even_list[1] += 1
else:
if y % 2 == 0:
odd_even_list[2] += 1
else:
odd_even_list[3] += 1
odd_even_list = list(map(lambda x: x // 2, odd_even_list))
if sum(odd_even_list) % 2 == 1:
print("Alice")
else:
print("Bob")
Konton7