#include typedef long long ll; typedef unsigned long long ull; #define FOR(i,a,b) for(int (i)=(a);i<(int)(b);i++) #define REP(i,n) FOR(i,0,n) #define RANGE(vec) (vec).begin(),(vec).end() using namespace std; // uint64_t 吐き出し法 std::vector sweep_uint64(const std::vector &A) { auto a = A; int n = a.size(); int row = 0; // O(64*N) for (int col = 63; col >= 0; --col) { int pivot = row; //row 行目以降だけ見る // 先頭から col 番目のビットが立っている a[i] を見つける while ( pivot < n && !(a[pivot] & 1ULL<>N; vector A(N); REP(i,N) cin>>A[i]; A = sweep_uint64(A); int k = count_if(RANGE(A), [](uint64_t a) { return (a>0); }); cout<<(1LL<solve(); delete obj; return 0; } #endif