0
0
已采纳
这题可以用一个函数
__builtin_popcount(x)
表示求x在二进制中有多少个1
你最好加个万能头
#include<bits/stdc++.h>
注意,函数前面有两个下划线
0
0
0