Introduction - If you have any usage issues, please Google them yourself
Description of the problem the assumption that the airport has one runway, each aircraft landing takes a certain period of time, take some time to take off, taking off and landing of aircraft to meet a certain probability. Generally speaking, the airport there are two queues, a queue waiting for the aircraft landing, and a waiting for takeoff the aircraft queue, the same wait time, waiting for the landing of the aircraft has a higher priority than the aircraft ready to take off. Try to write a program to simulate the operation of the airport.
Requirements】 queue or priority queue implementation requirements can transform the frequency of take-off and landing day to simulate the flight peak periods and the idle period requirements can change the landing and take-off time in order to simulate different effects.
[Tip] can be assumed to have an analog clock forward one minute at a time, every minute, resulting in two random numbers: If the first random number is less than landingRate/6