Description: The building has an elevator, early in the evening peak period when the elevator from the first floor from almost each layer to stop a huge waste of time. So someone came up with a new elevator scheduling algorithm: building floor is not high, so every time the elevator going up from the first floor, only to allow the elevator stopped at a floor, and then others from the layer of climbing stairs to reach their respective the destination when the first floor, each choose their own floor, the elevator should be calculated according to the different number for each floor, destination floor. Request to stop the elevator which floor, in order to ensure that all passengers are climbing stairs layers and at least (downstairs+ upstairs).
To Search:
File list (Check if you may need any files):
Project1.c
p1_out.txt
p1_in.txt