結果

問題 No.2024 Xer
ユーザー chocoruskchocorusk
提出日時 2022-08-09 02:00:07
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 981 bytes
コンパイル時間 4,421 ms
コンパイル使用メモリ 193,628 KB
実行使用メモリ 13,864 KB
最終ジャッジ日時 2023-10-19 13:21:43
合計ジャッジ時間 9,987 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 2 ms
4,348 KB
testcase_07 AC 200 ms
13,864 KB
testcase_08 AC 132 ms
13,864 KB
testcase_09 AC 111 ms
5,256 KB
testcase_10 AC 134 ms
13,864 KB
testcase_11 AC 51 ms
6,912 KB
testcase_12 AC 93 ms
9,188 KB
testcase_13 AC 111 ms
9,796 KB
testcase_14 AC 208 ms
13,444 KB
testcase_15 AC 70 ms
8,000 KB
testcase_16 AC 127 ms
10,428 KB
testcase_17 AC 60 ms
7,572 KB
testcase_18 AC 60 ms
7,444 KB
testcase_19 AC 206 ms
13,392 KB
testcase_20 AC 97 ms
9,544 KB
testcase_21 AC 199 ms
13,756 KB
testcase_22 AC 201 ms
13,836 KB
testcase_23 AC 201 ms
13,812 KB
testcase_24 AC 197 ms
13,640 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 4 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 4 ms
4,348 KB
testcase_42 AC 5 ms
4,348 KB
testcase_43 AC 4 ms
4,348 KB
testcase_44 AC 4 ms
4,348 KB
testcase_45 AC 65 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 2 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 x[50050];
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