結果
問題 |
No.2059 Odd Move Nim
|
ユーザー |
|
提出日時 | 2022-09-19 17:30:33 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 102,272 KB |
最終ジャッジ日時 | 2024-12-22 02:32:36 |
合計ジャッジ時間 | 2,720 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 10 RE * 2 |
ソースコード
n = int(input()) a = list(map(int,input().split())) c = a[1] + a[2]*2 cnt = 0 for i in range(3,n): cnt += a[i] if c % 2 == 1: if cnt > 0: print("Bob") else: print("Alice") else: if cnt > 0: print("Alice") else: print("Bob")