結果

問題 No.2059 Odd Move Nim
ユーザー 👑 tamatotamato
提出日時 2022-08-26 22:10:03
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 99,864 KB
最終ジャッジ日時 2023-08-05 13:59:33
合計ジャッジ時間 3,959 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,208 KB
testcase_01 AC 70 ms
71,324 KB
testcase_02 AC 70 ms
71,236 KB
testcase_03 AC 70 ms
71,196 KB
testcase_04 AC 70 ms
71,380 KB
testcase_05 AC 68 ms
71,188 KB
testcase_06 AC 69 ms
71,244 KB
testcase_07 AC 69 ms
71,368 KB
testcase_08 AC 68 ms
71,244 KB
testcase_09 AC 69 ms
71,372 KB
testcase_10 AC 70 ms
71,260 KB
testcase_11 AC 70 ms
71,160 KB
testcase_12 AC 123 ms
99,836 KB
testcase_13 AC 122 ms
99,796 KB
testcase_14 AC 125 ms
99,736 KB
testcase_15 AC 125 ms
99,724 KB
testcase_16 AC 125 ms
99,764 KB
testcase_17 AC 124 ms
99,864 KB
testcase_18 AC 125 ms
99,824 KB
testcase_19 AC 125 ms
99,756 KB
testcase_20 AC 123 ms
99,724 KB
testcase_21 AC 125 ms
99,788 KB
testcase_22 AC 71 ms
71,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline
    
    N = int(input())
    A = list(map(int, input().split()))
    
    g = 0
    for i in range(N):
        if i & 1:
            g ^= A[i]
    if g:
        print("Alice")
    else:
        print("Bob")


if __name__ == '__main__':
    main()
0