文件名称:car
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.26kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设有一个可以停放n辆汽车的狭长停车场,它只有一个大门可以供车辆进出。车辆到达停车场时间的早晚依次从停车场最里面向大门口处停放(最先到达的第一辆车放在停车场最里面)。如果停车场已放满n辆车,则后来的车辆只能停在停车场大门外的便道上等待,一旦停车场里有车开走,则排在便道上的第一辆车就进入停车场。若停车场内有某辆车要开走,在它之后进入停车场的车都必须先退出停车场,为它让路,待其开出停车场后,这些车再依原来的次序进场。每辆车离开停车场 时,都应根据其在停车场的逗留时间交费。如果停留在便道上的车未进停车场就要离去,允许其离去,不收停车费,并且仍然保持在便道上等待的车辆顺序。编制一程序模拟停车场的管理
-There is a park n vehicles can be long and narrow parking lot, it has only one door can be used for vehicle access. Vehicles to arrive sooner or later turn from the parking lot of time inside the car park entrance at the park (the first to reach the first car on the parking lot the inside). If the parking lot is filled with n vehicles, the vehicle was only parked in the parking lot waiting on the sidewalk outside the gate, once the parking lot where a car drove off, came in the first car on the sidewalk to enter the parking lot . If there is a car parking lot to drive away, into the parking lot in the car after it must first leave the parking lot, to make way for it, let it out of the carpark, the car then follow the original order entry. Vehicle leaving the parking lot, should be based on their length of stay in the parking lot fee. If you stay in the car on the sidewalk into the parking lot will not leave, allowing it to leave, do not charge parking fees, and still maintain the order
-There is a park n vehicles can be long and narrow parking lot, it has only one door can be used for vehicle access. Vehicles to arrive sooner or later turn from the parking lot of time inside the car park entrance at the park (the first to reach the first car on the parking lot the inside). If the parking lot is filled with n vehicles, the vehicle was only parked in the parking lot waiting on the sidewalk outside the gate, once the parking lot where a car drove off, came in the first car on the sidewalk to enter the parking lot . If there is a car parking lot to drive away, into the parking lot in the car after it must first leave the parking lot, to make way for it, let it out of the carpark, the car then follow the original order entry. Vehicle leaving the parking lot, should be based on their length of stay in the parking lot fee. If you stay in the car on the sidewalk into the parking lot will not leave, allowing it to leave, do not charge parking fees, and still maintain the order
(系统自动生成,下载前可以参看下载内容)
下载文件列表
car.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.