源码简介: |
设停车场内只有一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入-Parking lots within the park is only a narrow channel n cars, and only one gate for car access. Car in a car park by vehicles, time of arrival of the order in ordered north to south (entrance at the southern tip of the first arrival of the first car parked in the yard of the most northern end), if the car had been parked inside n cars, then later The car only on the sidewalk outside waiting, when a car drove off, then came in the first car on the pavement can be opened into
|