結果

問題 No.1456 Range Xor
ユーザー kept1994kept1994
提出日時 2021-08-28 03:06:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 123,252 KB
最終ジャッジ日時 2024-05-01 08:15:47
合計ジャッジ時間 5,965 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,408 KB
testcase_01 AC 39 ms
53,088 KB
testcase_02 AC 37 ms
53,136 KB
testcase_03 AC 108 ms
121,916 KB
testcase_04 AC 104 ms
121,972 KB
testcase_05 AC 104 ms
122,200 KB
testcase_06 AC 105 ms
123,096 KB
testcase_07 AC 104 ms
122,332 KB
testcase_08 AC 106 ms
121,776 KB
testcase_09 AC 107 ms
123,252 KB
testcase_10 AC 105 ms
122,980 KB
testcase_11 AC 50 ms
71,556 KB
testcase_12 AC 45 ms
63,280 KB
testcase_13 AC 58 ms
79,444 KB
testcase_14 AC 57 ms
78,640 KB
testcase_15 AC 94 ms
113,676 KB
testcase_16 AC 91 ms
109,488 KB
testcase_17 AC 65 ms
86,436 KB
testcase_18 AC 57 ms
77,992 KB
testcase_19 AC 80 ms
99,788 KB
testcase_20 AC 90 ms
109,464 KB
testcase_21 AC 79 ms
98,956 KB
testcase_22 AC 80 ms
99,188 KB
testcase_23 AC 60 ms
80,688 KB
testcase_24 AC 47 ms
68,976 KB
testcase_25 AC 55 ms
75,632 KB
testcase_26 AC 69 ms
91,276 KB
testcase_27 AC 84 ms
103,860 KB
testcase_28 AC 53 ms
74,532 KB
testcase_29 AC 97 ms
116,420 KB
testcase_30 AC 103 ms
122,504 KB
testcase_31 AC 53 ms
72,368 KB
testcase_32 AC 50 ms
72,056 KB
testcase_33 AC 62 ms
83,336 KB
testcase_34 AC 103 ms
121,740 KB
testcase_35 AC 72 ms
91,276 KB
testcase_36 AC 105 ms
123,208 KB
testcase_37 AC 97 ms
114,856 KB
testcase_38 AC 48 ms
68,040 KB
testcase_39 AC 86 ms
104,372 KB
testcase_40 AC 86 ms
103,912 KB
testcase_41 AC 43 ms
60,584 KB
testcase_42 AC 47 ms
66,424 KB
testcase_43 WA -
testcase_44 AC 37 ms
52,992 KB
testcase_45 AC 37 ms
53,004 KB
testcase_46 AC 37 ms
52,256 KB
testcase_47 WA -
testcase_48 AC 38 ms
52,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys


def main():
    N, K = map(int, input().split())
    A = list(map(int, input().split()))
    xorA = [0]
    for aa in A:
        xorA.append(xorA[-1] ^ aa)
    xorA.pop(0)
    xorK = set()
    for aa in xorA:
        xorK.add(aa ^ K)
    print("Yes" if set(xorA) & xorK else "No")
        
    return

if __name__ == '__main__':
    main()
0