6和8的最小公倍数是24,只要24就买3个8,其余几个值单列出来: import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> v = new ArrayList<>(Arrays.asList(0, 6, 8, 12, 14, 16, 2...