mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 17:12:06 +00:00
16 lines
224 B
C++
16 lines
224 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int n, t;
|
|
|
|
int main() {
|
|
cin >> n;
|
|
for (int i = 0; i < n; i++) {
|
|
cin >> t;
|
|
cout << __builtin_popcount(t) << ' ';
|
|
}
|
|
cout << endl;
|
|
return 0;
|
|
}
|