結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-15 00:06:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 105,472 KB |
| 最終ジャッジ日時 | 2024-10-02 06:48:33 |
| 合計ジャッジ時間 | 5,599 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 WA * 17 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
ans = True
for a in A[1:]:
if ans:
ans = not ans if a == 1 else ans
else:
ans = not ans if a > 1 else ans
print(["Bob","Alice"][ans])