判断一个组合数是奇数还是偶数

C(n,k)为奇数时

n&k==k     //n和k进行&位运算后还等于k

猜你喜欢

转载自blog.csdn.net/acdalao/article/details/80204028