文件名称:Parking-lot-problem
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:20.1kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设停车场是一个可停放 n 辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端)。若停车场内已经停满 n辆车,那么后来的车只能在门外的便道上等候。一旦有车开走,则排在便道上的第一辆车即可开入。当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入车场。-Parking lots is an n cars parked narrow channel, and only one gate for car access. Car in the parking lot of time in order to reach by car, arranged in order from north to south (the door in the southernmost tip of the first to reach the first car parked in the yard of the North). If the car park has been full of parked cars n, then the car was only waiting on the sidewalk outside. Once the car pulled away, then came in the first car on the pavement can be opened into. When the parking lot of a car to leave, then it must exit the vehicle into the yard to make way for it, to be out of the car outside the gate, then other vehicles into the parking lot of the original order.
相关搜索: Parking Lot
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第二次作业/222.C
第二次作业/222.EXE
第二次作业/~$实验报告2.doc
第二次作业/注释.txt
第二次作业
第二次作业/222.EXE
第二次作业/~$实验报告2.doc
第二次作业/注释.txt
第二次作业
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.