#include #include using namespace std; int dfs(int p, vector v){ if(p < 0 || v.size() == 1) return 0; // if(v.size() == 2){ // return v[0]^v[1]; // } vector one, zero; for(int i = 0; i < v.size(); i++){ if((v[i]>>p)&1) one.push_back(v[i]&((1<> n; vector a(n); for(int i = 0; i < n; i++) cin >> a[i]; cout << dfs(30, a) << endl; return 0; }