結果

問題 No.1511 A ? B Problem
ユーザー salil dandriyalsalil dandriyal
提出日時 2021-05-21 22:09:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 872 bytes
コンパイル時間 2,801 ms
コンパイル使用メモリ 217,304 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-18 15:39:32
合計ジャッジ時間 2,715 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,816 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 1 ms
6,944 KB
testcase_05 AC 1 ms
6,940 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 1 ms
6,944 KB
testcase_08 AC 2 ms
6,940 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 AC 2 ms
6,940 KB
testcase_11 AC 1 ms
6,944 KB
testcase_12 AC 1 ms
6,940 KB
testcase_13 AC 1 ms
6,944 KB
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 1 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<ext/pb_ds/assoc_container.hpp> 
#include<ext/pb_ds/tree_policy.hpp>
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace __gnu_pbds;
using namespace std;
typedef tree<string, null_type, less<string>, rb_tree_tag,tree_order_statistics_node_update>
new_data_set;

vector<vector<int>> arr; vector<int> parent,sz ; vector<bool> visited;


int main(){
	ios_base::sync_with_stdio(false);
    cin.tie(NULL); 

    /***********************************/
    
    /*
    int u,v,n,m; cin>>n>>m;
    parent.resize(n); sz.resize(n,1);
    arr.resize(n);  iota(parent.begin(),parent.end(),0); 

    for(int i=0;i<m;i++){
    	cin>>u>>v;  --u;--v;
    	if(find(u)==find(v)){
    		cout<<"cycle detected"<<"\n";
    	}
    	merge(u , v);
    	arr[u].pb(v) ; arr[v].pb(u);
    }
    */
    int a,b;cin>>a>>b;
    cout<<((a|b) - (a&b))<<"\n";
    
}

0