結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-15 15:43:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 101,376 KB |
| 最終ジャッジ日時 | 2026-04-19 05:46:12 |
| 合計ジャッジ時間 | 4,812 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 51 WA * 12 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
A.reverse()
players = ['Alice', 'Bob']
idx = 0
for a in A:
if a == 1:
idx ^= 1
else:
break
print(players[idx])