結果
問題 | No.1506 Unbalanced Pocky Game |
ユーザー |
![]() |
提出日時 | 2021-05-17 19:50:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 87 ms / 2,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 101,376 KB |
最終ジャッジ日時 | 2024-10-06 23:10:00 |
合計ジャッジ時間 | 5,516 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 63 |
ソースコード
n = int(input()) A = list(map(int, input().split())) i = 0 while A and A[-1] == 1: A.pop() i += 1 if A: if i%2 == 0: print('Alice') else: print('Bob') else: if i%2 == 1: print('Alice') else: print('Bob')