【两个方法】bitset(int a).count&__builtin_popcount(int a)

这两个方法是用来获得二进制形式中1的个数!!

猜你喜欢

转载自blog.csdn.net/Csdn_jey/article/details/89061314