文件名称:Rearrangement_train
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:61.17kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
火车车厢重排
使用栈最少 (c++ 栈)
题目:一列货运列车共有n节车厢,每节车厢将停放在不同的车站,假定n个车站的编号分别为1—n,货运列车按照第n站至第1站的次序经过这些车站,车厢的编号与他们的目的地相同。为了便于从列车上卸下相应的车厢,必须重新排列车厢,使各车厢从前至后都按照编号1到n的次序排列,当所有的车厢都
按照这种次序排列时,在每个车站只需卸掉最后一节车厢即可。-Rearrangement train for at least the use of the stack (c++ stack) subject: a total of n freight train cars, each car will be parked at different stations, it is assumed that the number of stations n are 1-n, in accordance with paragraph n freight train station to Station No. 1, after the order of these stations, car number and the same as their destination. In order to facilitate unloading from the train on the train, we must rearrange the compartments, so that after the train to the former No. 1 in accordance with the order n, when all the compartments in accordance with this order, the only station in each removed the last one can train.
使用栈最少 (c++ 栈)
题目:一列货运列车共有n节车厢,每节车厢将停放在不同的车站,假定n个车站的编号分别为1—n,货运列车按照第n站至第1站的次序经过这些车站,车厢的编号与他们的目的地相同。为了便于从列车上卸下相应的车厢,必须重新排列车厢,使各车厢从前至后都按照编号1到n的次序排列,当所有的车厢都
按照这种次序排列时,在每个车站只需卸掉最后一节车厢即可。-Rearrangement train for at least the use of the stack (c++ stack) subject: a total of n freight train cars, each car will be parked at different stations, it is assumed that the number of stations n are 1-n, in accordance with paragraph n freight train station to Station No. 1, after the order of these stations, car number and the same as their destination. In order to facilitate unloading from the train on the train, we must rearrange the compartments, so that after the train to the former No. 1 in accordance with the order n, when all the compartments in accordance with this order, the only station in each removed the last one can train.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Rearrangement_train.pdf
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
