結果

問題 No.2059 Odd Move Nim
ユーザー flygonflygon
提出日時 2022-09-19 17:30:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 100,668 KB
最終ジャッジ日時 2023-08-23 18:59:16
合計ジャッジ時間 4,172 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,148 KB
testcase_01 AC 75 ms
71,096 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 72 ms
70,968 KB
testcase_06 WA -
testcase_07 RE -
testcase_08 AC 69 ms
71,140 KB
testcase_09 RE -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 131 ms
100,528 KB
testcase_13 WA -
testcase_14 AC 127 ms
100,332 KB
testcase_15 AC 124 ms
100,464 KB
testcase_16 WA -
testcase_17 AC 126 ms
100,436 KB
testcase_18 AC 128 ms
100,176 KB
testcase_19 AC 129 ms
100,568 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 72 ms
71,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0