結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-14 23:50:23 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 457 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 105,472 KB |
| 最終ジャッジ日時 | 2026-09-08 16:10:29 |
| 合計ジャッジ時間 | 6,255 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 35 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
if N == 1:
print("Alice")
elif N == 2:
if A[1] == 1:
print("Bob")
else:
print("Alice")
else:
l = N-2
cnt_one = A[2:].count(1)
if A[1] == 1:
if (l+cnt_one)%2:
print("Alice")
else:
print("Bob")
elif A[1] > 1:
if (l+cnt_one)%2:
print("Alice")
else:
print("Bob")