摘要: 求二进制中的1。 突然发现得转c++ #include<iostream> using namespace std; int Countone(long long x){ int res=0; while(x){ res += x & 1; x = x >> 1; } return res; } i 阅读全文
posted @ 2025-07-22 17:27 .N1nEmAn 阅读(8) 评论(0) 推荐(0)