結果

問題 No.2024 Xer
ユーザー chocoruskchocorusk
提出日時 2022-08-09 02:03:24
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 966 bytes
コンパイル時間 4,114 ms
コンパイル使用メモリ 195,192 KB
実行使用メモリ 13,804 KB
最終ジャッジ日時 2023-10-19 13:26:02
合計ジャッジ時間 9,570 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 157 ms
13,804 KB
testcase_08 AC 129 ms
13,804 KB
testcase_09 AC 112 ms
5,196 KB
testcase_10 AC 133 ms
13,804 KB
testcase_11 AC 49 ms
6,852 KB
testcase_12 AC 88 ms
9,128 KB
testcase_13 AC 99 ms
9,736 KB
testcase_14 AC 170 ms
13,384 KB
testcase_15 AC 67 ms
7,940 KB
testcase_16 AC 108 ms
10,368 KB
testcase_17 AC 58 ms
7,512 KB
testcase_18 AC 58 ms
7,384 KB
testcase_19 AC 163 ms
13,332 KB
testcase_20 AC 99 ms
9,484 KB
testcase_21 AC 173 ms
13,696 KB
testcase_22 AC 170 ms
13,776 KB
testcase_23 AC 174 ms
13,752 KB
testcase_24 AC 168 ms
13,580 KB
testcase_25 WA -
testcase_26 AC 4 ms
4,348 KB
testcase_27 AC 3 ms
4,348 KB
testcase_28 AC 2 ms
4,348 KB
testcase_29 WA -
testcase_30 AC 4 ms
4,348 KB
testcase_31 AC 5 ms
4,348 KB
testcase_32 AC 5 ms
4,348 KB
testcase_33 AC 4 ms
4,348 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 3 ms
4,348 KB
testcase_37 WA -
testcase_38 AC 5 ms
4,348 KB
testcase_39 AC 2 ms
4,348 KB
testcase_40 AC 2 ms
4,348 KB
testcase_41 AC 3 ms
4,348 KB
testcase_42 AC 4 ms
4,348 KB
testcase_43 AC 4 ms
4,348 KB
testcase_44 AC 4 ms
4,348 KB
testcase_45 AC 66 ms
4,348 KB
testcase_46 AC 16 ms
4,348 KB
testcase_47 AC 50 ms
4,348 KB
testcase_48 AC 2 ms
4,348 KB
testcase_49 AC 2 ms
4,348 KB
testcase_50 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <time.h>
#include <stack>
#include <array>
#include <list>
#include <atcoder/all>
#define popcount __builtin_popcount
using namespace std;
using namespace atcoder;
typedef long long ll;
typedef pair<int, int> P;
using mint=modint998244353;
int a[200020];
int main()
{
    int n, x;
    cin>>n>>x;
    map<int, int> mp;
    for(int i=0; i<n; i++) cin>>a[i];
    for(int i=0; i<n; i++){
        mp[(x^((1<<30)-1))&a[i]]++;
    }
    for(auto p:mp){
        if(p.second!=1){
            cout<<"No"<<endl;
            return 0;
        }
    }
    cout<<"Yes"<<endl;
    return 0;
}
0