文件名称:02
-
所属分类:
- 标签属性:
- 上传时间:2013-01-11
-
文件大小:6.33kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
电梯模拟系统问题描述:
模拟某校九层教学楼的电梯系统。该楼有一个自动电梯,能在每层停留。九个楼层由下至上依次称为地下一层、第一层、第二层、……第八层,其中第一层是大楼的进出层,即是电梯的“本垒层”,电梯“空闲”时,将来到该层候命。
乘客可随时地进出于任何层。对于每个人来说,他有一个能容忍的最长等待时间,一旦等候电梯时间过长,他将放弃。
模拟时钟从0开始,时间单位为0.1秒。人和电梯的各种动作均要消耗一定的时间单位(简记为t),比如:有人进出时,电梯每隔40t检测一次,若无人进出,则关门;关门和开门各需要20t;每个人进出电梯均需要25t;如果电梯在某层精致时间超过300t,则驶回1层候命-Descr iption 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
模拟某校九层教学楼的电梯系统。该楼有一个自动电梯,能在每层停留。九个楼层由下至上依次称为地下一层、第一层、第二层、……第八层,其中第一层是大楼的进出层,即是电梯的“本垒层”,电梯“空闲”时,将来到该层候命。
乘客可随时地进出于任何层。对于每个人来说,他有一个能容忍的最长等待时间,一旦等候电梯时间过长,他将放弃。
模拟时钟从0开始,时间单位为0.1秒。人和电梯的各种动作均要消耗一定的时间单位(简记为t),比如:有人进出时,电梯每隔40t检测一次,若无人进出,则关门;关门和开门各需要20t;每个人进出电梯均需要25t;如果电梯在某层精致时间超过300t,则驶回1层候命-Descr iption 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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
02.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.