Description: Description of the problem:
Simulation of a school nine-story classroom building elevator system. Even an escalator at each stay. Nine floors from bottom sequentially called underground layer, the first layer, the second layer, ...... eighth layer, wherein the first layer is the building of the access layer, that is, the home base layer "of the elevator, the elevator" idle "will come to the layer on standby.
Passengers and out at any time in any layer. For each person, he has a tolerance longest wait time, waiting for the elevator too long, he will give up.
Analog clock from 0, the unit of time is 0.1 seconds. And lift a variety of actions have to consume a certain amount of time units (abbreviated as t), such as: was out, elevator every 40t detection, time, if not the movement of people, closed closing and opening each 20t each individuals out of the elevator are 25t elevator in a layer of fine more than 300t, drove back a layer on standby
To Search:
File list (Check if you may need any files):
02.cpp