7.29 第二题 public class Test { public static void setAdd(Set<Integer> set,Integer i){ if(!set.add(i)){ set.remove(i); setAdd(set,i<<1); } } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); Integ...