結果
| 問題 | No.2059 Odd Move Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-19 17:30:33 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 248 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 82,168 KB |
| 実行使用メモリ | 111,912 KB |
| 最終ジャッジ日時 | 2026-10-05 20:01:14 |
| 合計ジャッジ時間 | 2,629 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")