結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-05-14 22:16:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 102,212 KB |
| 最終ジャッジ日時 | 2024-10-02 01:40:44 |
| 合計ジャッジ時間 | 6,104 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 32 WA * 31 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
cnt=n
for i in range(n):
if a[i]!=1:
cnt=i+1
break
num=n-cnt
if cnt%2==0:
if num==0:
print("Bob")
else:
print("Alice")
else:
if num!=0:
print("Bob")
else:
print("Alice")
nasubi24