Problem Description
You are to simulate the movements of an elevator, which works according to the following rules:
The elevator stays 3 seconds for customers to get in or get out. If some customers want to get in and some want to get out, the elevator stays 6 seconds.
It takes the elevator 2 seconds to go one story upwards or downwards.
When there is no request for service, the elevator stays where it is. Namely, it is idle.
When the elevator is idle, and a request comes from upwards or downwards, it moves upwards or downwards. If a request comes from the story where it stays, the elevator opens its door to serve these customers.
When the elevator goes upwards or downwards, it keeps its dir