登录
首页 » C# » laquo; Problem description : In a train station, k, k track connected to the sid...

laquo; Problem description : In a train station, k, k track connected to the sid...

于 2023-04-18 发布 文件大小:976.00 B
0 55
下载积分: 2 下载次数: 1

代码说明:

« 问题描述:在一个列车调度站中,k条轨道连接到k条侧轨处,形成k个铁路转轨栈,从左到右依次记为H1,H2,…,Hk如下图所示。其中左边轨道为车皮入口(记为H0),右边轨道为出口(记为Hk+1),,编号为a , a , ,an 1 2  的n 个车皮从入口依次进入转轨栈,由调度室安排车皮进出栈次序,并对车皮按其出栈次序重新排序为1,2,…,n。调度室在安排车皮进出栈次序时,遵循以下规则:(1) 车皮入口H0处的车皮可以进入转轨栈H1,H2,…,Hk之一,或直接进入车皮出口Hk+1。(2) 转轨栈H1,H2,…,Hk处的车皮可以进入车皮出口Hk+« 编程任务:给定正整数n,和n个车皮的初始编号n a , a , ,a 1 2  ,编程计算最少需要多少个转轨栈才能按照规则(1)和(2)调度车皮,使车皮在车皮出口按照1,2,…,n的顺序输出。« 数据输入:由文件input.txt 给出输入数据。第1 行有1 个正整数n,表示有n 个车皮。第2 行是n个车皮的初始编号n a , a , ,a 1 2  。« 结果输出:将计算出的最少转轨栈数输出到文件output.txt。输入文件示例 输出文件示例input.txt output.txt42 3 4 13-laquo; Problem description : In a train station, k, k track connected to the side of the tracks, forming k stack rail transition from left to right followed credited to H1, H2, ..., Hk as in the figure below. Which left orbit for imported cars (credited to H0), the right track for exports (credited as a Hk), and numbered a, a, and an 1 2# 61516; The n followed by wagon from the entrance into the stack transition from

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • TGMMMrarh
    本混合高斯模型是一种基于opencv的,运用用了系统自带的检测函数,检测效果较好.欢迎切磋! (Gaussian mixture model is based on the opencv, the use of the system comes with the detection functions, better detection. Welcome to learn!)
    2012-08-14 23:36:17下载
    积分:1
  • C#获取IE密码
    C#获取IE密码,小工程(——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————)
    2023-04-06 00:30:03下载
    积分:1
  • Zigbee-location-code
    本程序为基于Zigbee TI CC2431芯片的定位程序原代码,供大家参考,欢迎提出建议(This program is based on Zigbee TI CC2431 chip positioning program source code, for your reference, welcome suggestions)
    2013-05-28 16:05:44下载
    积分:1
  • WindowsFormsProgrammingWithCSharp
    Windows Forms Programming With CSharp
    2009-07-11 16:23:41下载
    积分:1
  • SVPWM_VSI
    SVPWM是近年发展的一种比较新颖的控制方法,是由三相功率逆变器的六个功率开关元件组成的特定开关模式产生的脉宽调制波,能够使输出电流波形尽可能接近于理想的正弦波形。空间电压矢量PWM与传统的正弦PWM不同,它是从三相输出电压的整体效果出发,着眼于如何使电机获得理想圆形磁链轨迹。SVPWM技术与SPWM相比较,绕组电流波形的谐波成分小,使得电机转矩脉动降低,旋转磁场更逼近圆形,而且使直流母线电压的利用率有了很大提高,且更易于实现数字化。(SVPWM is a novel control method developed in recent years. It is a pulse width modulation wave generated by a specific switching mode consisting of six power switching elements of three-phase power inverters, which can make the output current waveform as close as possible to the ideal sinusoidal waveform. Space voltage vector PWM is different from traditional sinusoidal PWM. It is based on the overall effect of three-phase output voltage, focusing on how to obtain the ideal circular flux trajectory of the motor. Compared with SPWM, the harmonic component of winding current waveform is smaller, which reduces the torque ripple of motor, makes the rotating magnetic field more close to the circle, and improves the utilization ratio of DC bus voltage greatly, and makes it easier to realize digitization.)
    2019-01-30 10:57:56下载
    积分:1
  • IEButtonDemo
    界面示例,讲述如何在MFC中生成一个动态按钮(Interface example, describes how to generate a dynamic button in MFC)
    2011-05-19 13:54:28下载
    积分:1
  • wavelet_.M
    一维信号的小波去噪,这是一个很好的基于小波变换的小波去噪,是针对一维的,去噪效果非常好!(1DWT wavelet denoide)
    2015-09-22 19:57:53下载
    积分:1
  • Barcode-scanner-production
    论文详细讲解了利用单片机制作条形码扫描仪的方法,以条形码中的交叉25码为例。(Paper detailed a single chip production method barcode scanner to barcode cross 25 yards for example.)
    2014-09-05 10:25:24下载
    积分:1
  • STM32红外检测有人开始录音,并播放录音
    STM32红外检测有人开始录音,并播放录音
    2020-11-04下载
    积分:1
  • A-one-dimensional-convolution
    一维褶积 雷克子波与地层序数 地震资料正演方法(One-dimensional convolution Ricker wave formation ordinal)
    2013-12-26 15:22:59下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载