結果

問題 No.2059 Odd Move Nim
ユーザー taiga0629kyopro
提出日時 2022-08-21 17:54:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 102,400 KB
最終ジャッジ日時 2024-10-13 21:16:52
合計ジャッジ時間 2,975 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #


n=int(input())
def grd(x):
    if x==1:return 0
    return x%2+1
a=[0]+list(map(int,input().split()))
ans=0
for i in range(2,n+1):
    if a[i]%2==0:continue
    ans^=grd(i)
print("Alice" if ans else "Bob")
0