結果

問題 No.1456 Range Xor
ユーザー nohakai3nohakai3
提出日時 2022-07-03 21:27:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 21,532 KB
最終ジャッジ日時 2023-08-19 22:30:25
合計ジャッジ時間 4,497 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,056 KB
testcase_01 AC 15 ms
8,120 KB
testcase_02 AC 14 ms
7,812 KB
testcase_03 AC 49 ms
18,820 KB
testcase_04 AC 54 ms
18,828 KB
testcase_05 AC 69 ms
18,828 KB
testcase_06 AC 48 ms
18,784 KB
testcase_07 AC 75 ms
18,888 KB
testcase_08 AC 63 ms
18,880 KB
testcase_09 AC 48 ms
18,788 KB
testcase_10 AC 56 ms
18,940 KB
testcase_11 AC 27 ms
10,644 KB
testcase_12 AC 20 ms
9,480 KB
testcase_13 AC 38 ms
13,912 KB
testcase_14 AC 28 ms
11,316 KB
testcase_15 AC 41 ms
16,932 KB
testcase_16 AC 51 ms
16,656 KB
testcase_17 AC 45 ms
15,340 KB
testcase_18 AC 26 ms
11,780 KB
testcase_19 AC 53 ms
16,344 KB
testcase_20 AC 54 ms
16,752 KB
testcase_21 AC 43 ms
16,336 KB
testcase_22 AC 36 ms
14,900 KB
testcase_23 AC 38 ms
14,732 KB
testcase_24 AC 24 ms
10,664 KB
testcase_25 AC 35 ms
13,656 KB
testcase_26 AC 49 ms
15,248 KB
testcase_27 AC 48 ms
16,464 KB
testcase_28 AC 32 ms
13,212 KB
testcase_29 AC 84 ms
21,532 KB
testcase_30 AC 58 ms
18,440 KB
testcase_31 AC 31 ms
12,932 KB
testcase_32 AC 27 ms
10,816 KB
testcase_33 AC 39 ms
15,012 KB
testcase_34 AC 63 ms
18,052 KB
testcase_35 AC 45 ms
15,208 KB
testcase_36 AC 59 ms
18,664 KB
testcase_37 AC 82 ms
20,600 KB
testcase_38 AC 25 ms
10,712 KB
testcase_39 AC 42 ms
15,784 KB
testcase_40 AC 61 ms
16,388 KB
testcase_41 AC 15 ms
8,300 KB
testcase_42 AC 22 ms
9,764 KB
testcase_43 AC 14 ms
8,120 KB
testcase_44 AC 15 ms
7,880 KB
testcase_45 AC 15 ms
8,204 KB
testcase_46 AC 14 ms
8,064 KB
testcase_47 AC 14 ms
8,088 KB
testcase_48 AC 15 ms
7,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
A=list(map(int,input().split()))
s=set()
now=0
s.add(now)
for i in A:
    now=now^i
    tmp=now^k
    if tmp in s:
        print("Yes")
        exit()
    s.add(now)

print("No")
0