CountDownLatch + Semaphore思路清晰 import java.util.Scanner; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Semaphore; /** */ public class Main{ public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); while(sc.hasNex...