#include using namespace std; #define rep(i, a, b) for(int i=a; i pii; typedef pair pll; typedef vector vi; typedef vector vll; int main() { cin.tie(0)->sync_with_stdio(0); cin.exceptions(cin.failbit); unsigned int n, k; cin >> n >> k; vector a(n); fo(i, n) cin >> a[i]; int logn = 0; while ((1 << logn) < n) logn++; vector> ors(logn+1, vector(n, 0)); for (int d=0; d