更优解
2025-08-22 10:40:31
发布于:四川
6阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << __builtin_popcount(n);
return 0;
}
全部评论 2
2025-08-22 来自 四川
02025-08-22 来自 四川
0
2025-08-22 10:40:31
发布于:四川
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << __builtin_popcount(n);
return 0;
}
提交答案之后,这里将显示提交结果~
有帮助,赞一个