結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-15 22:42:36 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 96,456 KB |
| 実行使用メモリ | 115,108 KB |
| 最終ジャッジ日時 | 2026-09-02 13:27:18 |
| 合計ジャッジ時間 | 12,901 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 16 RE * 47 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
right = N - 1
count = 0
while right >= 0 and A[right] == 1:
right -= -1
count += 1
if count == N:
if N % 2 == 1:
print('Alice')
else:
print('Bob')
else:
if count % 2 == 1:
print('Bob')
else:
print('Alice')