Simulation

755. Pour Water

Time Order

2534. Time to Pass a Gate

  1. The simulation ends when everyone has entered/exited.
  2. Time is placed in the inner loop.