結果

問題 No.2672 Subset Xor Sum
ユーザー 👑 rin204rin204
提出日時 2024-03-15 21:28:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 146,428 KB
最終ジャッジ日時 2024-03-15 21:28:35
合計ジャッジ時間 6,813 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 35 ms
53,332 KB
testcase_02 AC 35 ms
53,332 KB
testcase_03 AC 35 ms
53,332 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 35 ms
53,332 KB
testcase_07 AC 35 ms
53,332 KB
testcase_08 AC 35 ms
53,332 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 35 ms
53,332 KB
testcase_12 AC 36 ms
53,332 KB
testcase_13 AC 35 ms
53,332 KB
testcase_14 AC 38 ms
53,332 KB
testcase_15 AC 37 ms
53,332 KB
testcase_16 AC 35 ms
53,332 KB
testcase_17 AC 36 ms
53,332 KB
testcase_18 AC 35 ms
53,332 KB
testcase_19 AC 35 ms
53,332 KB
testcase_20 AC 35 ms
53,332 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 35 ms
53,332 KB
testcase_24 AC 35 ms
53,332 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 36 ms
53,332 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 141 ms
119,840 KB
testcase_41 AC 194 ms
127,824 KB
testcase_42 AC 167 ms
114,304 KB
testcase_43 AC 217 ms
146,428 KB
testcase_44 AC 159 ms
112,444 KB
testcase_45 AC 40 ms
59,828 KB
testcase_46 WA -
testcase_47 AC 40 ms
59,828 KB
testcase_48 AC 41 ms
59,828 KB
testcase_49 AC 41 ms
59,828 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 40 ms
59,828 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 36 ms
53,332 KB
testcase_59 AC 43 ms
59,828 KB
testcase_60 AC 39 ms
59,844 KB
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 WA -
testcase_65 AC 35 ms
53,332 KB
testcase_66 AC 36 ms
53,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
A.sort(reverse=True)
if A[0] == 0:
    print("Yes")
    exit()
while A[-1] == 0:
    A.pop()
B = []
for a in A:
    for b in B:
        a = min(a, a ^ b)
    if a == 0:
        print("Yes")
        exit()

print("No")
0