結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-14 23:44:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 405 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 102,808 KB |
| 最終ジャッジ日時 | 2024-10-02 05:57:12 |
| 合計ジャッジ時間 | 5,686 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 WA * 30 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
if N == 1:
print("Alice")
elif N == 2:
if A[1] == 1:
print("Bob")
else:
print("Alice")
else:
if A[1] == 1:
if A[2] > 1:
print("Alice")
else:
print("Bob")
elif A[1] > 1:
if A[2] == 1:
print("Bob")
else:
print("Alice")