結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-05-14 22:16:13 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 80,388 KB |
| 実行使用メモリ | 104,796 KB |
| 最終ジャッジ日時 | 2026-09-08 11:30:34 |
| 合計ジャッジ時間 | 6,755 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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