搜索资源列表
jialun
- 输入汽车消耗的汽油公升数和行驶的英里数,输出车子每加仑能够形式的英里数-Read into the car consumed by the number of liters of gasoline and traveling miles, and then output the car s not gallon of gasoline to run miles
car
- 一辆汽车加满油后可行驶n 公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。并证明算法能产生一个最优解。-A fill up the car after running kilometers n. The journey with a plurality of gas station. The design of an efficient algorithm, point out should be in which gas station refue
qichejiayouwenti
- 一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应 在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n(n <= 5000)和k(k <= 1000)个加油站位置,编程计算最少加油次数。-Fill up the car after driving an n km. There are several gas stations journey. Design an efficient algorithm, which pointed out that