Leetcode_1117_H2O生成_多线程
啥也不说了,我爱死信号量了~class H2O { private static final Semaphore h = new Semaphore(2); private static final Semaphore o = new Semaphore(0); private volatile boolean flag = false; public H2O() { } public void hydrogen(Runnable releaseHydr