int lowbit(int x)
{
    return x & (-x);
}
//返回最低位1的的位置的2^k,例如lowbit(8) = 2^3 == 8, lowbit(16) = 2 ^ 4 == 16
打赏
支付宝收款码
支付宝
微信收款码
微信