#include #include #include #include #include using namespace std; using i64 = long long; using u64 = unsigned long long; #define rep(i,n) for(i64 i=0; i<(i64)(n); i++) #define repr(i,n) for(i64 i=(i64)(n)-1; i>=0; i--) int main(){ i64 MAX_XOR = (i64)1 << 21; i64 N, K; cin >> N >> K; vector A(N); rep(i,N) cin >> A[i]; vector XOR(N+1); rep(i,N) XOR[i+1] = XOR[i] ^ A[i]; i64 l = 0, r = N; { vector lastseen(MAX_XOR, -1); rep(i,N+1){ if(lastseen[XOR[i]] != -1){ l = max(l, lastseen[XOR[i]]); r = min(r, i); } lastseen[XOR[i]] = i; } } if(r <= l){ cout << "No\n"; return 0; } vector xorcand; for(i64 i=0; i<15; i++){ i64 offset = (((i64(1) << i) - 1) << 7); for(i64 d=0; d<128; d++) if((offset | d) < MAX_XOR) xorcand.push_back(offset | d); } vector lpos(MAX_XOR); vector rpos(MAX_XOR); vector C(MAX_XOR); for(i64 i=0; i<=l; i++) lpos[XOR[i]]++; for(i64 i=l+1; i<=N; i++){ for(i64 x : xorcand) C[x] += lpos[XOR[i] ^ x]; rpos[XOR[i]]++; } for(i64 i=l; i