結果

問題 No.1456 Range Xor
ユーザー convexineqconvexineq
提出日時 2021-04-01 11:06:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 105,168 KB
最終ジャッジ日時 2023-08-22 15:32:10
合計ジャッジ時間 9,440 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,512 KB
testcase_01 AC 70 ms
71,592 KB
testcase_02 AC 70 ms
71,368 KB
testcase_03 AC 101 ms
94,600 KB
testcase_04 AC 101 ms
96,404 KB
testcase_05 AC 110 ms
102,796 KB
testcase_06 AC 101 ms
94,808 KB
testcase_07 AC 112 ms
105,168 KB
testcase_08 AC 109 ms
101,000 KB
testcase_09 AC 101 ms
95,336 KB
testcase_10 AC 103 ms
97,244 KB
testcase_11 AC 82 ms
79,552 KB
testcase_12 AC 78 ms
76,372 KB
testcase_13 AC 88 ms
83,544 KB
testcase_14 AC 85 ms
81,056 KB
testcase_15 AC 96 ms
91,356 KB
testcase_16 AC 98 ms
93,336 KB
testcase_17 AC 92 ms
88,072 KB
testcase_18 AC 83 ms
80,248 KB
testcase_19 AC 96 ms
91,308 KB
testcase_20 AC 101 ms
94,092 KB
testcase_21 AC 95 ms
88,760 KB
testcase_22 AC 95 ms
87,112 KB
testcase_23 AC 89 ms
83,804 KB
testcase_24 AC 81 ms
78,024 KB
testcase_25 AC 86 ms
82,388 KB
testcase_26 AC 97 ms
90,952 KB
testcase_27 AC 98 ms
91,800 KB
testcase_28 AC 85 ms
81,360 KB
testcase_29 AC 114 ms
104,212 KB
testcase_30 AC 105 ms
98,184 KB
testcase_31 AC 83 ms
80,440 KB
testcase_32 AC 82 ms
79,728 KB
testcase_33 AC 88 ms
84,612 KB
testcase_34 AC 108 ms
100,548 KB
testcase_35 AC 92 ms
87,692 KB
testcase_36 AC 105 ms
98,516 KB
testcase_37 AC 110 ms
104,116 KB
testcase_38 AC 81 ms
77,996 KB
testcase_39 AC 96 ms
89,876 KB
testcase_40 AC 104 ms
96,856 KB
testcase_41 AC 77 ms
76,576 KB
testcase_42 AC 79 ms
77,044 KB
testcase_43 AC 73 ms
71,532 KB
testcase_44 AC 74 ms
71,556 KB
testcase_45 AC 74 ms
71,412 KB
testcase_46 AC 73 ms
71,368 KB
testcase_47 AC 74 ms
71,324 KB
testcase_48 AC 74 ms
71,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
*a, = map(int,input().split())
for i in range(1,n):
    a[i] ^= a[i-1]
d = {0}
for ai in a:
    if ai^k in d:
        print("Yes")
        exit()
    d.add(ai)
print("No")
0