摘要: #include using namespace std; int main() { int n; cin >> n; int count = 0; while(n) { n = n&(n-1); count++; } cout << count << endl; return 0; } 阅读全文
posted @ 2016-10-14 22:40 prog123 阅读(190) 评论(0) 推荐(0) 编辑