inline void solve (int n) {
for (int i = 1, top = 1; i <= n; i ++, top ++) {
int cur = 0;
for (int j = top; j <= n; j ++)
if (mat[j][i]) {
cur = j;
break;
}
if (!cur) {
top --;
ans = 2ll * ans % MOD;
continue;
}
if (cur != top) swap(mat[cur], mat[top]);
for (int j = 1; j <= n; j ++)
if (top != j && mat[j][i]) mat[j] ^= mat[top];
}
}
标签:方程组,int,void,异或,高斯消,模板
From: https://www.cnblogs.com/duoluoluo/p/16755284.html