3 solutions

  • 0
    @ 2026-7-7 15:17:55
    #include<bits/stdc++.h>
    using namespace std;
    int main(){	
    	int n;
    	cin>>n;
    	bitset<32> a(n);
    	cout<<a.count(); 
    	return 0;
    }
    

    Information

    ID
    123
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    71
    Accepted
    37
    Uploaded By