結果

問題 No.1716 Bonus Nim
ユーザー Kite_kumaKite_kuma
提出日時 2021-06-04 23:50:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 617 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 81,780 KB
実行使用メモリ 133,004 KB
最終ジャッジ日時 2023-10-24 11:23:35
合計ジャッジ時間 5,996 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,516 KB
testcase_01 AC 35 ms
53,516 KB
testcase_02 AC 35 ms
53,516 KB
testcase_03 AC 35 ms
53,516 KB
testcase_04 AC 189 ms
113,640 KB
testcase_05 AC 200 ms
117,912 KB
testcase_06 AC 169 ms
113,432 KB
testcase_07 AC 179 ms
105,724 KB
testcase_08 AC 197 ms
111,192 KB
testcase_09 AC 143 ms
109,132 KB
testcase_10 AC 205 ms
111,968 KB
testcase_11 AC 211 ms
107,340 KB
testcase_12 AC 206 ms
109,156 KB
testcase_13 AC 227 ms
132,140 KB
testcase_14 AC 213 ms
119,792 KB
testcase_15 AC 617 ms
77,056 KB
testcase_16 AC 35 ms
53,516 KB
testcase_17 AC 36 ms
53,516 KB
testcase_18 AC 35 ms
53,516 KB
testcase_19 AC 36 ms
53,516 KB
testcase_20 AC 35 ms
53,516 KB
testcase_21 AC 35 ms
53,516 KB
testcase_22 AC 217 ms
119,936 KB
testcase_23 AC 135 ms
118,844 KB
testcase_24 AC 175 ms
116,916 KB
testcase_25 AC 175 ms
133,004 KB
testcase_26 AC 196 ms
119,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 11:35~

t = int(input())

def solve():
    n = int(input())
    a = list(map(int, input().split()))
    if n & 1:
        return True
    a.sort()    
    for i in range(0, n, 2):
        if a[i] != a[i+1]:
            return True
    return False




for test in range(t):
    print("Alice" if solve() else "Bob")
0