登录
首页 » 算法 » 地铁乘坐问题

地铁乘坐问题

于 2023-08-01 发布 文件大小:31.72 kB
0 181
下载积分: 2 下载次数: 1

代码说明:

为引导旅客合理利用线路资源,解决交通瓶颈问题,该市制定了票价策略: 每条线路可以单独购票,票价不等。 允许购买某些两条可换乘线路的联票,联票价格低于分别购票的价格和。 单线票价和联合票价由文件price.txt给出,形式如下:   线1 180   ……   线13 114   线1,线2 350   线1,线10 390   …… 文件price.txt中,每行数据表示一条单线或联线的票价。线名与票价间用空格分开。如果是联线,两线名之间用逗号分开,并且规定联线只能包含两条可换乘的线路。 现在的问题是,根据这些已知的数据,计算从A站到B站最小花费和可行的换乘方案。比如,

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

发表评论

0 个回复

  • pid控制
    利用pid控制算法可以实现减小漂移,p代表比例,i代表积分,d代表微分。pid算法实现闭环调节,在自平衡车,机器人,四轴飞行器方面用途广泛
    2022-03-02 14:08:01下载
    积分:1
  • 在COMSOL Multiphysics模拟悬臂
    Cantilever simulations in COMSOL Multiphysics
    2022-02-12 21:42:39下载
    积分:1
  • using gall function for measure the algorithm
    using gall function for measure the algorithm
    2022-02-02 05:22:06下载
    积分:1
  • a description of the problem is : No. 1, 2, ..., n n clockwise direction by indi...
    约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,没人持有一个密码。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针自1开始报数,报到m是停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。-a description of the problem is : No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, no one holding a password. One person started as a positive integer limits on the number of reported m, from the first individuals to embark on the clockwise from a few reportedly started, the report m is reportedly stopped a few. M reported out of the list of his password as a new value m, from a clockwise direction in the next re-started from a newspaper a few, like that, until the total of all listed so far.
    2022-02-03 16:31:48下载
    积分:1
  • 声波 2D 交错网格有限差分正演模拟pml衰减边界条件 、多炮
    应用背景用于地震勘探中声波正演模拟学习研究关键技术声波 2D 交错网格有限差分正演模拟算法pml衰减边界条件 、多炮
    2022-04-17 23:05:01下载
    积分:1
  • 竞选
    原创优化算法,类似于粒子群算法,收敛速度快,适用于前段近似解的求解,可以与牛顿法结合两段求解优化问题。 只完成算法本身程序,与其他算法的对比未完成。
    2022-03-10 10:29:01下载
    积分:1
  • mobus通信51程序
    modbus RTU 的C51程序  单片机89S52 通信波特率 9600 8位数据 1位停止位 偶校验 485通位接口 单片机控制板地址 localAddr(变量) 通信可设置数据的地址: 字地址 0 - 255 (只取16位的低8位) 位地址 0 - 255 (只取16位的低8位)
    2022-04-16 05:51:15下载
    积分:1
  • 最件单的求值问题..就是求井深和绳长的问题,,我还是个初学者...
    最件单的求值问题..就是求井深和绳长的问题,,我还是个初学者-most pieces of the single-issue .. evaluates depth and is seeking a long rope, and I was a beginner, and laughter
    2022-07-19 00:03:09下载
    积分:1
  • 项目实施的堆
    函数和过程: 1.Heapify 2.建堆 3.插入 4.提取最大 5.增加的关键 6.初始化 7.打印堆 从文件堆成 8.读取文本)
    2023-02-08 06:50:03下载
    积分:1
  • 信息论编码中用hufman程序来实现的hufman编码
    信息论编码中用hufman程序来实现的hufman编码- In the information theory code hufman which realizes with the hufman procedure codes
    2023-03-06 03:50:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载