ans

DOZIE 2022-07-10 14:12:15 13 返回题目

#include <bits/stdc++.h> using namespace std; int main(){ int n , t = 0; cin >> n; while (n > 0){ if (n % 2 == 1){ t++; } n /= 2; } cout << t << endl; return 0; }

{{ vote && vote.total.up }}