文件名称:sss
介绍说明--下载内容均来自于网络,请自行研究使用
设有一个可以停放n辆汽车的狭长停车场,它只有一个大门可以供车辆进出。车辆到达停车场时间的早晚依次从停车场最里面向大门口处停放(最先到达的第一辆车放在停车场最里面)。如果停车场已放满n辆车,则后来的车辆只能停在停车场大门外的便道上等待,一旦停车场里有车开走,则排在便道上的第一辆车就进入停车场。若停车场内有某辆车要开走,在它之后进入停车场的车都必须先退出停车场,为它让路,待其开出停车场后,这些车再依原来的次序进场。每辆车离开停车场时,都应根据其在停车场的逗留时间交费。如果停留在便道上的车未进停车场就要离去,允许其离去,不收停车费,并且仍然保持在便道上等待的车辆顺序。编制一程序模拟停车场的管理。
Input-can be accommodated with an n of the vehicle parking strip, it can be only one door for vehicles entering and leaving. Vehicles arrived at the car park by the time the evening followed from the car park inside the entrance to the parking Office (the first arrival of the first car up in the car park inside). If the car park was filled with vehicles n, then the only vehicles in the parking lot outside the main entrance on the sidewalk waiting, Once the car parks a car drive away, will be placed on the sidewalk a car into the garage. For a carpark vehicles to drive away in it after the car into the garage must first withdraw from the car park to give way to it. come out until after the car park, these vehicles instead of the original order of the venue. The vehicle from the carpark, it should
Input-can be accommodated with an n of the vehicle parking strip, it can be only one door for vehicles entering and leaving. Vehicles arrived at the car park by the time the evening followed from the car park inside the entrance to the parking Office (the first arrival of the first car up in the car park inside). If the car park was filled with vehicles n, then the only vehicles in the parking lot outside the main entrance on the sidewalk waiting, Once the car parks a car drive away, will be placed on the sidewalk a car into the garage. For a carpark vehicles to drive away in it after the car into the garage must first withdraw from the car park to give way to it. come out until after the car park, these vehicles instead of the original order of the venue. The vehicle from the carpark, it should
(系统自动生成,下载前可以参看下载内容)
下载文件列表
sss.doc