teamnote history merge
This commit is contained in:
5
2025fall/source/Linear Algebra/XORBasis.cpp
Normal file
5
2025fall/source/Linear Algebra/XORBasis.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
vector<ll> basis;
|
||||
void insert(ll x) {
|
||||
for(auto i:basis) x = min(x, x ^ basis[i]);
|
||||
if (x != 0) basis.push_back(x);
|
||||
}
|
||||
Reference in New Issue
Block a user