Description: A parking lot is a long, narrow passageway that can be parked in an n car, and only one gate can be used to get in and out of the car. Car in the parking lot vehicle in the order of arrival time of from north to south in order to arrange (gate at the southern tip of the first to reach the first car parked in the yard of the north), if in the parking lot has stopped full n car, the car later have to wait outside the door of the pavement, once the car drive away, ranked first CheJi can open into the sidewalk; Parking lot of a car to leave, even after it entered the car must withdraw from the depot to make way for the it, to be opened the car door, other vehicles to enter the yard, according to the original order parked in the yard of each car must press it when it left the parking fees for the length of time. Write a simulation program that is managed according to the above requirements.
To Search:
File list (Check if you may need any files):