結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-01 03:30:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 919 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 101,120 KB |
| 最終ジャッジ日時 | 2024-11-27 00:01:18 |
| 合計ジャッジ時間 | 7,799 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 63 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
turn = 0
while N:
if A[-1] != 1 or N == 1:
print("Bob") if turn else print("Alice")
exit()
else:
A.pop()
N -= 1
turn = 1 - turn
rlangevin