import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int num = sc.nextInt(); //计算1的个数 int count = 0; String toBinary = Integer.toBinaryString(num);...