結果

問題 No.1456 Range Xor
ユーザー O2MTO2MT
提出日時 2021-12-30 23:08:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 95,872 KB
最終ジャッジ日時 2024-04-16 09:13:24
合計ジャッジ時間 5,108 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
51,712 KB
testcase_01 AC 38 ms
51,584 KB
testcase_02 AC 38 ms
51,840 KB
testcase_03 AC 65 ms
85,120 KB
testcase_04 AC 67 ms
86,528 KB
testcase_05 AC 76 ms
93,548 KB
testcase_06 AC 67 ms
85,376 KB
testcase_07 AC 79 ms
95,872 KB
testcase_08 AC 73 ms
91,544 KB
testcase_09 AC 67 ms
86,016 KB
testcase_10 AC 70 ms
87,552 KB
testcase_11 AC 49 ms
66,516 KB
testcase_12 AC 45 ms
61,952 KB
testcase_13 AC 55 ms
71,168 KB
testcase_14 AC 52 ms
68,224 KB
testcase_15 AC 63 ms
80,896 KB
testcase_16 AC 66 ms
82,816 KB
testcase_17 AC 62 ms
75,520 KB
testcase_18 AC 50 ms
66,816 KB
testcase_19 AC 64 ms
80,256 KB
testcase_20 AC 66 ms
83,328 KB
testcase_21 AC 60 ms
77,224 KB
testcase_22 AC 59 ms
75,904 KB
testcase_23 AC 55 ms
71,168 KB
testcase_24 AC 48 ms
65,024 KB
testcase_25 AC 53 ms
69,632 KB
testcase_26 AC 63 ms
78,976 KB
testcase_27 AC 64 ms
80,896 KB
testcase_28 AC 52 ms
68,224 KB
testcase_29 AC 80 ms
94,208 KB
testcase_30 AC 71 ms
88,396 KB
testcase_31 AC 51 ms
66,944 KB
testcase_32 AC 50 ms
66,432 KB
testcase_33 AC 56 ms
72,320 KB
testcase_34 AC 73 ms
90,752 KB
testcase_35 AC 61 ms
75,932 KB
testcase_36 AC 72 ms
88,832 KB
testcase_37 AC 81 ms
94,296 KB
testcase_38 AC 50 ms
64,640 KB
testcase_39 AC 62 ms
78,848 KB
testcase_40 AC 71 ms
85,760 KB
testcase_41 AC 46 ms
59,520 KB
testcase_42 AC 47 ms
62,720 KB
testcase_43 WA -
testcase_44 AC 39 ms
51,840 KB
testcase_45 WA -
testcase_46 AC 39 ms
51,712 KB
testcase_47 WA -
testcase_48 AC 39 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))
D = {}
num = 0
ans = 'No'
for a in A:
    num ^= a
    if K^num in D:
        ans = 'Yes'
        break
    D[num] = True

print(ans)
0