結果

問題 No.1456 Range Xor
ユーザー okkuukenkenokkuukenken
提出日時 2022-07-19 13:47:28
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 466 bytes
コンパイル時間 1,332 ms
コンパイル使用メモリ 133,444 KB
実行使用メモリ 7,508 KB
最終ジャッジ日時 2023-09-14 08:23:13
合計ジャッジ時間 6,864 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 10 ms
4,380 KB
testcase_04 AC 17 ms
4,528 KB
testcase_05 AC 50 ms
6,176 KB
testcase_06 AC 10 ms
4,376 KB
testcase_07 AC 62 ms
6,744 KB
testcase_08 AC 39 ms
5,840 KB
testcase_09 AC 13 ms
4,380 KB
testcase_10 AC 22 ms
4,708 KB
testcase_11 AC 14 ms
4,380 KB
testcase_12 AC 7 ms
4,380 KB
testcase_13 AC 25 ms
4,832 KB
testcase_14 AC 10 ms
4,376 KB
testcase_15 AC 7 ms
4,380 KB
testcase_16 AC 25 ms
5,048 KB
testcase_17 AC 35 ms
5,336 KB
testcase_18 AC 6 ms
4,376 KB
testcase_19 AC 34 ms
5,528 KB
testcase_20 AC 29 ms
5,420 KB
testcase_21 AC 18 ms
4,496 KB
testcase_22 AC 9 ms
4,376 KB
testcase_23 AC 21 ms
4,704 KB
testcase_24 AC 11 ms
4,376 KB
testcase_25 AC 22 ms
4,676 KB
testcase_26 AC 40 ms
5,608 KB
testcase_27 AC 25 ms
4,940 KB
testcase_28 AC 19 ms
4,736 KB
testcase_29 AC 84 ms
7,508 KB
testcase_30 AC 28 ms
5,036 KB
testcase_31 AC 17 ms
4,464 KB
testcase_32 AC 15 ms
4,380 KB
testcase_33 AC 21 ms
4,648 KB
testcase_34 AC 41 ms
5,892 KB
testcase_35 AC 27 ms
4,964 KB
testcase_36 AC 29 ms
5,080 KB
testcase_37 AC 83 ms
7,420 KB
testcase_38 AC 12 ms
4,376 KB
testcase_39 AC 15 ms
4,380 KB
testcase_40 AC 49 ms
6,264 KB
testcase_41 AC 2 ms
4,380 KB
testcase_42 AC 8 ms
4,376 KB
testcase_43 AC 2 ms
4,380 KB
testcase_44 AC 2 ms
4,380 KB
testcase_45 AC 1 ms
4,376 KB
testcase_46 AC 1 ms
4,380 KB
testcase_47 AC 2 ms
4,376 KB
testcase_48 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
#include<iomanip>
#include<numeric>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<random>
using namespace std;
typedef long long ll;
const int mod=998244353;
int main(){
	int n,k,a;
	cin>>n>>k;
	int tmp=0;
	set<int>st;
	while(cin>>a){
		st.insert(tmp);
		tmp^=a;
		if(st.count(tmp^k))
			cout<<"Yes"<<endl,exit(0);
	}
	cout<<"No"<<endl;
}
0