結果
問題 |
No.1506 Unbalanced Pocky Game
|
ユーザー |
![]() |
提出日時 | 2021-05-14 23:38:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 104 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 24,200 KB |
最終ジャッジ日時 | 2024-10-02 05:43:33 |
合計ジャッジ時間 | 5,730 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 63 |
ソースコード
import sys def solve(): n = int(sys.stdin.readline()) a = [int(x) for x in sys.stdin.readline().split()] win = True for i in range(1, n): if not win: win = True elif a[i] == 1: win = False else: win = True return win print(["Bob", "Alice"][solve()])