diff --git a/AcWing/801/801.cpp b/AcWing/801/801.cpp new file mode 100644 index 00000000..f73ae9ff --- /dev/null +++ b/AcWing/801/801.cpp @@ -0,0 +1,15 @@ +#include + +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; +}