-
issue a travel home to travel home to drive a car with the minimum of cost yi us...
旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution"。-issue a travel home to travel home to drive a car with the minimum of cost yi used from one city to another city (assuming starting at the fuel tank was empty). Given the two cities for the distance between D1, car fuel tank capacity of the C (in liters) per liter petrol traveling distance to the D2, the starting point liter gasoline prices P and several petrol stations along the N (N can be zero), PFS i distance from the starting point Di per liter Steam oil prices Pi (i = 1,2 ... N). Calculation results rounded to two decimal places. If unable to reach their destination, the export of "No Solution."
- 2023-09-07 00:25:03下载
- 积分:1
-
topological sorting 拓扑排序
用C语言实现的拓扑排序算法topological sorting
- 2022-04-18 18:34:53下载
- 积分:1
-
你好世界
应用背景adasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddспомощьюVинаспомощьюVинав。в。спомощьюVинаadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasdddddddddddddddddddddddddddddddddddddddddddadasddddddddddddddddddddddddddddddddddddddddddd关键技术234567891011121314151617181920РазмерА(- 2,- 4) ; ;делаюя= - 3,2читать*,(В(Я,какДж),ДжвС= - 4,0) ;конецсделатьзвонокмассивные(В,Н)печать*,встопконецподпрограммымассивные(В,Н)измерениеВ(Н) ; ;нея= 2,н2СделатьДж=Я,НВвKиВ=Н-ДЖ+Яесли(в(
- 2022-01-22 11:45:09下载
- 积分:1
-
用C++生成C/A码
C/A码信号属于伪随机噪声(PRN,Pseudo-random
Noise)码系列。C/A码是长度为1023的G码(Gold
- 2022-03-25 10:34:49下载
- 积分:1
-
简单的路标识别
应用背景本代码用于国际机器人比赛,识别图标有左拐、右拐、直走三个方向,识别率可以达到90%,在机器人倾斜角度相对较小的情况下,识别率可以达到100%。每秒钟可以识别40~60张图片。有效的提升了机器人竞技实力!关键技术本代码采用图像细化骨架提取和霍夫变换拟合直线,通过图像细化提取路标的骨架,再通过霍夫变换拟合直线,再通过拟合的直线,计算拟合后直线的方向,以45度为标准,倾角大于45度的视为纵线,否则视为横线,在通过判定的直线方向给拟合后直线归类,竖直和水平方向,根据直线中心点的位置,判断当先路标的指向。
- 2022-05-31 13:08:10下载
- 积分:1
-
计算器
计算器- Calculator
- 2023-09-06 08:35:03下载
- 积分:1
-
舍罕王失算程序
国际象棋是古印度舍罕王的宰相达伊尔发明,舍罕王问宰相要什么赏赐。宰相就说:第一个格子放一粒麦子、第二个格子放两粒麦子、第三格子放四粒麦子.......依次知道64个格子 问舍罕王能实现吗?
- 2022-08-08 14:02:02下载
- 积分:1
-
this file need a traffic log in txt format, given the traffic log, it gets the i...
this file need a traffic log in txt format, given the traffic log, it gets the ip address source and destination to perform the IP-lookup following the Huang s algorithm, as result it returns another txt showing the right port and destination ip
- 2023-04-05 05:05:03下载
- 积分:1
-
矩阵运算,具体说明见程序中,在各个程序中都有详细的介绍
矩阵运算,具体说明见程序中,在各个程序中都有详细的介绍- The matrix operation, concrete showing sees in the procedure,
all has the detailed introduction in each procedure
- 2022-11-26 21:40:03下载
- 积分:1
-
矢量量化的C语言实现
矢量量化的C语言实现-Vector Quantization C Language
- 2023-07-29 13:55:03下载
- 积分:1