結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 15:40:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| + 512µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 95,652 KB |
| 実行使用メモリ | 113,152 KB |
| 最終ジャッジ日時 | 2026-07-11 14:59:02 |
| 合計ジャッジ時間 | 7,949 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 63 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
found = False
p = 0
for i in range(n-1, -1, -1):
if a[i] > 1:
p = n - i
found = True
break
if found:
if p % 2 == 1:
print("Alice")
else:
print("Bob")
else:
if n % 2 == 1:
print("Alice")
else:
print("Bob")
gew1fw