牛客

        bitset<32> b(a);//定义一个二进制类

    __builtin_popcount(n) 输出二进制为一的数有多少

 

posted @ 2019-06-02 21:48  YZBPXX  阅读(148)  评论(0编辑  收藏  举报