#include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 101; int T, n, m, q; ll K; int cnt = 0; struct LinearBasis{ ll a[maxn + 10]; int b[maxn]; int insert(ll t){ for(int j = 62 ; j >= 0 ; --j){ if(!t) return 0; ...