#10008. 【入门】2进制中的0和1
【入门】2进制中的0和1
说明
请编程计算出,一个整数n(0<=n<=1,000,000)转换为2进制后有多少个0,有的多少个1。输入格式
输入一个整数n。输出格式
输出2个整数,用空格隔开,分别表示一个整数n中0和1的个数。13
1 3
13
1 3
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.