摘要: 总结一下:x&(-x),当x为0时结果为0;x为奇数时,结果为1;x为偶数时,结果为x中2的最大次方的因子。. #include<bits/stdc++.h> #include<iostream> using namespace std; typedef long long ll; const in 阅读全文
posted @ 2021-07-22 14:28 旅玖旅玖 阅读(29) 评论(0) 推荐(0) 编辑