2018.3給定一個int型整數,輸出這個整數的二進制的0和1的個數

//3、給定一個int型整數,輸出這個整數的二進制的0和1的個數。 //樣例輸入: //8 //樣例輸出: //count0=28 count1=4 #include <iostream> #include<math.h> using namespace std; int main() { int t; cin>>t; int y=t; int b; in
相關文章
相關標籤/搜索