結果

問題 No.1456 Range Xor
ユーザー 👑 H20H20
提出日時 2021-04-01 13:34:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 107,008 KB
最終ジャッジ日時 2024-05-09 22:58:22
合計ジャッジ時間 5,301 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,968 KB
testcase_01 AC 37 ms
51,584 KB
testcase_02 WA -
testcase_03 AC 84 ms
106,240 KB
testcase_04 AC 83 ms
106,624 KB
testcase_05 AC 84 ms
106,112 KB
testcase_06 AC 83 ms
106,240 KB
testcase_07 AC 85 ms
106,624 KB
testcase_08 AC 85 ms
106,624 KB
testcase_09 AC 86 ms
107,008 KB
testcase_10 AC 82 ms
106,368 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 56 ms
73,216 KB
testcase_15 AC 77 ms
99,712 KB
testcase_16 AC 74 ms
96,128 KB
testcase_17 WA -
testcase_18 AC 54 ms
73,600 KB
testcase_19 AC 69 ms
89,216 KB
testcase_20 AC 80 ms
96,128 KB
testcase_21 AC 65 ms
87,936 KB
testcase_22 AC 67 ms
89,216 KB
testcase_23 AC 57 ms
75,392 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 70 ms
92,288 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 83 ms
106,112 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 58 ms
77,440 KB
testcase_34 AC 86 ms
104,832 KB
testcase_35 AC 63 ms
83,072 KB
testcase_36 AC 84 ms
106,104 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 72 ms
93,184 KB
testcase_40 AC 74 ms
92,800 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 38 ms
51,712 KB
testcase_44 WA -
testcase_45 AC 38 ms
51,584 KB
testcase_46 AC 38 ms
52,224 KB
testcase_47 AC 38 ms
51,712 KB
testcase_48 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))
XORA = [A[0]]
for i in range(1,N):
    XORA.append(XORA[-1]^A[i])
SXORA = set(XORA)
if K in SXORA:
    print('Yes')
    exit()
TEMP = 0
for i in range(N):
    TEMP = TEMP ^ A[i]
    if K^TEMP in SXORA:
        print('Yes')
        exit()


print('NO')
0