摘要: ###A、Matrix Equation 题意: 给定两个 \(n\times n\) 的$01$矩阵$A$,\(B\),求$01$矩阵 \(C\) 的种数,其中 \(C\) 满足 \(A\times C = B\odot C\) 。 设 \(Z = X\times Y\) ,即表示 \({Z_{i 阅读全文
posted @ 2021-01-19 21:59 hachuochuo 阅读(189) 评论(0) 推荐(0)
摘要: int main() { cout<<__builtin_ffs(4)<<endl; //返回n的最后一位1的是从后向前第几位 //返回3 cout<<__builtin_ctz(8)<<endl; //返回n的后面的0的个数 //返回3 cout<<__builtin_popcount(11)<< 阅读全文
posted @ 2021-01-19 19:27 hachuochuo 阅读(52) 评论(0) 推荐(0)