资 源 简 介
fen否则需依次排队等候。一旦有顾客理完发离去时,排在队头的顾客便可开始理发。若理发店每天
连续营业T小时,
求一天内顾客在理发馆内平均的逗留时间、顾客排队等候理发的队列的平均长度、营业时间到点后仍需
要完成的收尾工作时间
测试数据:理发椅数N及关门时间由用户读入,第一个顾客进门的时刻为0,之后每个顾客进门的时刻由
前一个顾客进门时间确定。即在进门事件发生时即产生两个随机数(durtime,intertime),durtime为进
门顾客理发所需要的服务时间,intertime为下一个顾客将到达的时间间隔。R为-fen otherwise be followed queue. Once customers Jimmy End made to leave, the first in the queue of customers will start barber. If the barber shop daily turnover of T consecutive hours a day for customers in the barbershop where the average length of stay, customers are queuing up at the barbershop the average queue length, hours after the close of the need to complete the relevant work time test data : N barber chairs and closed by the user time to read, a customers went 0 for the moment, the door after each customer from the time a customer comes first time to determine. At the time of the incident comes as a result of two random number (durtime, intertime), the door for customers durtime hairdressi