摘要: #include using namespace std;int func(int x){ int cnt = 0; while (x) { cnt++; x = x&(x - 1); } return cnt;}int main(){ ... 阅读全文
posted @ 2014-05-15 21:55 简单的信仰 阅读(1768) 评论(0) 推荐(1) 编辑