采用消除低位1的方法,位运算 x & (x- 1) 消除低位的1 package 牛客网.华为机试; import java.util.Scanner; public class IntOneCount { public static void main(String[] args) { Scanner sc =&nb...