1 条题解

  • 0
    @ 2024-11-9 17:16:11
    #include <bits/stdc++.h>
    using namespace std;
    int n,x; 
    int main()
    {
    	cin>>n;
    	bitset<32>b(n);
    	x=b.count();
    	cout<<x;
    
             return 0;
    }
    
    
    • 1

    信息

    ID
    187
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    5
    已通过
    4
    上传者