文件名称:Rearrangement_train

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [C/C++] [PDF]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 61kb
  • 下载次数:
  • 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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

Rearrangement_train.pdf

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org