結果
問題 |
No.1506 Unbalanced Pocky Game
|
ユーザー |
|
提出日時 | 2021-05-14 23:50:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 457 bytes |
コンパイル時間 | 177 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 102,912 KB |
最終ジャッジ日時 | 2024-10-02 06:15:51 |
合計ジャッジ時間 | 6,064 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 35 |
ソースコード
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: l = N-2 cnt_one = A[2:].count(1) if A[1] == 1: if (l+cnt_one)%2: print("Alice") else: print("Bob") elif A[1] > 1: if (l+cnt_one)%2: print("Alice") else: print("Bob")