結果

問題 No.1456 Range Xor
ユーザー 小野寺健小野寺健
提出日時 2021-04-30 16:12:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 23,780 KB
最終ジャッジ日時 2023-09-25 16:39:21
合計ジャッジ時間 4,451 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,756 KB
testcase_01 AC 15 ms
7,824 KB
testcase_02 AC 15 ms
7,788 KB
testcase_03 AC 78 ms
23,584 KB
testcase_04 AC 77 ms
23,652 KB
testcase_05 AC 80 ms
23,636 KB
testcase_06 AC 79 ms
23,716 KB
testcase_07 AC 90 ms
23,644 KB
testcase_08 AC 82 ms
23,592 KB
testcase_09 AC 79 ms
23,656 KB
testcase_10 AC 78 ms
23,780 KB
testcase_11 AC 29 ms
11,032 KB
testcase_12 AC 21 ms
9,400 KB
testcase_13 AC 41 ms
13,708 KB
testcase_14 AC 35 ms
13,764 KB
testcase_15 AC 66 ms
18,560 KB
testcase_16 AC 62 ms
19,112 KB
testcase_17 AC 50 ms
14,752 KB
testcase_18 AC 33 ms
13,272 KB
testcase_19 AC 52 ms
18,600 KB
testcase_20 AC 61 ms
18,624 KB
testcase_21 AC 51 ms
17,988 KB
testcase_22 AC 53 ms
17,664 KB
testcase_23 AC 37 ms
14,008 KB
testcase_24 AC 27 ms
10,852 KB
testcase_25 AC 37 ms
13,244 KB
testcase_26 AC 55 ms
16,528 KB
testcase_27 AC 56 ms
18,744 KB
testcase_28 AC 35 ms
12,864 KB
testcase_29 AC 92 ms
23,592 KB
testcase_30 AC 73 ms
23,520 KB
testcase_31 AC 32 ms
11,476 KB
testcase_32 AC 29 ms
11,004 KB
testcase_33 AC 42 ms
14,704 KB
testcase_34 AC 74 ms
23,608 KB
testcase_35 AC 47 ms
16,752 KB
testcase_36 AC 75 ms
23,604 KB
testcase_37 AC 88 ms
18,940 KB
testcase_38 AC 27 ms
10,712 KB
testcase_39 AC 58 ms
18,404 KB
testcase_40 AC 67 ms
18,388 KB
testcase_41 AC 17 ms
8,388 KB
testcase_42 AC 23 ms
9,720 KB
testcase_43 WA -
testcase_44 AC 15 ms
7,928 KB
testcase_45 AC 15 ms
7,824 KB
testcase_46 AC 15 ms
7,964 KB
testcase_47 WA -
testcase_48 AC 15 ms
7,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())

A = list(map(int, input().split()))

d = dict()
X = K
for a in A:
    X ^= a
    d[X] = True

X = 0
for a in A:
    X ^= a
    if X in d:
        print('Yes')
        break
else:
    print('No')
0