• 2024-05-30D. XORificator
    D.XORificatorYouaregivenabinary(consistingonlyof0sand1s)$n\timesm$matrix.YouarealsogivenaXORificator,usingwhichyoucaninvertallthevaluesinachosenrow(i.e.replace0with1and1with0).Acolumninthematrixisconsider
  • 2024-05-29CF 948 DIV.2 D. XORificator
    考虑对每个设置为1且唯一那么我们发现对于所有的状态都是确定且唯一的那么我们对于每个点假设它为1且为该列唯一对于除它之外的点的状态进行存储又由于这个值过于大我们考虑使用哈希存储那么出现次数最多的值即为答案点击查看代码map<ull,int>cnt;map<ull,pii>pos;void
  • 2024-05-28D. XORificator
    原题链接题解一句话总结:使得\((i,j)\)内的元素为1,且为所在列的唯一一个1,需要翻转哪些行?在我看来,用了随机概率异或哈希code#include<bits/stdc++.h>#definelllonglongusingnamespacestd;mt19937_64rnd(chrono::steady_clock::now().time_since_epoch().count());