結果

問題 No.1456 Range Xor
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-08 11:19:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 97,892 KB
最終ジャッジ日時 2023-08-26 16:21:04
合計ジャッジ時間 8,373 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 70 ms
71,472 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 76 ms
77,684 KB
testcase_12 AC 73 ms
76,496 KB
testcase_13 AC 80 ms
80,396 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 83 ms
83,544 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 75 ms
76,760 KB
testcase_25 AC 78 ms
79,992 KB
testcase_26 AC 85 ms
85,220 KB
testcase_27 WA -
testcase_28 AC 78 ms
79,160 KB
testcase_29 AC 96 ms
94,888 KB
testcase_30 WA -
testcase_31 AC 78 ms
78,472 KB
testcase_32 AC 76 ms
77,780 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 96 ms
94,940 KB
testcase_38 AC 75 ms
76,688 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 74 ms
76,620 KB
testcase_42 AC 75 ms
76,568 KB
testcase_43 WA -
testcase_44 AC 68 ms
71,288 KB
testcase_45 AC 68 ms
71,380 KB
testcase_46 AC 69 ms
71,452 KB
testcase_47 WA -
testcase_48 AC 68 ms
71,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
A = list(map(int,input().split()))
A = [0]
for i in range(n):
    A.append(A[-1]^A[i])
A_set = set(A)
for i in range(len(A)):
    if A[i] ^ k in A_set:
        print("Yes")
        exit()
print("No")
0