結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2021-05-14 22:15:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 2,000 ms |
| コード長 | 205 bytes |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 101,120 KB |
| 最終ジャッジ日時 | 2024-10-02 01:38:25 |
| 合計ジャッジ時間 | 6,525 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 63 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
ans = 0
while len(a) > 0:
if a[-1] > 1:
break
ans ^= 1
a.pop()
else:
ans ^= 1
if ans:
print('Bob')
else:
print('Alice')
hir355