結果

問題 No.1456 Range Xor
ユーザー MtSakaMtSaka
提出日時 2021-03-13 14:16:13
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 1,712 ms
コンパイル使用メモリ 166,592 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-08 02:44:52
合計ジャッジ時間 3,767 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,944 KB
testcase_02 WA -
testcase_03 AC 39 ms
6,944 KB
testcase_04 AC 39 ms
6,940 KB
testcase_05 AC 39 ms
6,944 KB
testcase_06 AC 40 ms
6,944 KB
testcase_07 AC 41 ms
6,940 KB
testcase_08 AC 40 ms
6,944 KB
testcase_09 AC 37 ms
6,944 KB
testcase_10 AC 37 ms
6,944 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 12 ms
6,944 KB
testcase_15 AC 31 ms
6,940 KB
testcase_16 AC 29 ms
6,944 KB
testcase_17 WA -
testcase_18 AC 12 ms
6,940 KB
testcase_19 AC 23 ms
6,940 KB
testcase_20 AC 30 ms
6,944 KB
testcase_21 AC 25 ms
6,944 KB
testcase_22 AC 25 ms
6,944 KB
testcase_23 AC 15 ms
6,944 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 27 ms
6,940 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 39 ms
6,940 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 17 ms
6,940 KB
testcase_34 AC 38 ms
6,944 KB
testcase_35 AC 21 ms
6,940 KB
testcase_36 AC 39 ms
6,940 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 27 ms
6,944 KB
testcase_40 AC 29 ms
6,940 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 2 ms
6,944 KB
testcase_44 WA -
testcase_45 AC 2 ms
6,944 KB
testcase_46 AC 2 ms
6,944 KB
testcase_47 AC 2 ms
6,940 KB
testcase_48 AC 2 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,s,n) for(int i=s;i<n;i++)
using namespace std;
using ll=long long;
int main(){
    ll n,k;
    cin>>n>>k;
    ll a[n];
    ll sum[n+1];
    sum[0]=0;
    rep(i,0,n){
        cin>>a[i];
        sum[i+1]=sum[i]^a[i];
    }
    rep(i,0,n+1){
        rep(j,i+1,n+1){
            if(sum[i]^sum[j]==k){
                cout<<"Yes"<<endl;
                return 0;
            }
        }
    }
    cout<<"No"<<endl;
    return 0;
}
0