#include #include using namespace std; using ll = long long; using pp = pair; #define rep(i,n) for(int i = 0;i> N; rep(i, N) cin >> A[i]; vector dp(1 << N,0); rep(i, 1<> j) & (i >> k) & 1){ //cout << i << j << k << i-(1<