結果

問題 No.1456 Range Xor
ユーザー kept1994kept1994
提出日時 2022-12-24 18:18:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 95,872 KB
最終ジャッジ日時 2024-04-29 04:58:00
合計ジャッジ時間 6,370 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
51,444 KB
testcase_01 AC 43 ms
51,456 KB
testcase_02 AC 47 ms
51,712 KB
testcase_03 AC 89 ms
85,120 KB
testcase_04 AC 77 ms
87,552 KB
testcase_05 AC 85 ms
93,312 KB
testcase_06 AC 77 ms
85,760 KB
testcase_07 AC 88 ms
95,872 KB
testcase_08 AC 82 ms
92,160 KB
testcase_09 AC 73 ms
86,272 KB
testcase_10 AC 75 ms
88,320 KB
testcase_11 AC 54 ms
65,664 KB
testcase_12 AC 48 ms
61,312 KB
testcase_13 AC 58 ms
71,040 KB
testcase_14 AC 55 ms
68,608 KB
testcase_15 AC 67 ms
81,408 KB
testcase_16 AC 71 ms
82,560 KB
testcase_17 AC 64 ms
75,648 KB
testcase_18 AC 54 ms
66,944 KB
testcase_19 AC 68 ms
80,128 KB
testcase_20 AC 69 ms
83,072 KB
testcase_21 AC 64 ms
77,312 KB
testcase_22 AC 63 ms
75,776 KB
testcase_23 AC 58 ms
71,296 KB
testcase_24 AC 51 ms
64,384 KB
testcase_25 AC 58 ms
69,632 KB
testcase_26 AC 65 ms
79,104 KB
testcase_27 AC 67 ms
80,896 KB
testcase_28 AC 54 ms
67,968 KB
testcase_29 AC 84 ms
94,464 KB
testcase_30 AC 76 ms
88,576 KB
testcase_31 AC 53 ms
66,816 KB
testcase_32 AC 52 ms
66,048 KB
testcase_33 AC 59 ms
72,064 KB
testcase_34 AC 78 ms
91,136 KB
testcase_35 AC 63 ms
76,288 KB
testcase_36 AC 75 ms
88,960 KB
testcase_37 AC 82 ms
94,208 KB
testcase_38 AC 51 ms
64,384 KB
testcase_39 AC 66 ms
79,104 KB
testcase_40 AC 75 ms
86,144 KB
testcase_41 AC 46 ms
59,136 KB
testcase_42 AC 48 ms
62,464 KB
testcase_43 WA -
testcase_44 AC 40 ms
51,840 KB
testcase_45 WA -
testcase_46 AC 43 ms
51,840 KB
testcase_47 WA -
testcase_48 AC 40 ms
51,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    N, K = map(int, input().split())
    A = list(map(int, input().split()))[1:]
    last_xors = 0
    xors = set([last_xors])
    for aa in A:
        last_xors ^= aa
        target = last_xors ^ K
        if target in xors:
            print("Yes")
            return
        xors.add(last_xors)
    print("No")
    return
        
if __name__ == '__main__':
    main()
0