文件名称:horse
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:98.59kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
田忌赛马问题
假设其中胜者可以从对方手中得到¥200,输者必须给对方¥200,平局各不付钱。
已知齐王总是按照速度从大到小派出马比赛,请问田忌要使用怎样的策略,才能使自己
赚的钱最多(或者输的钱最少)。
编程任务
对于给定的齐王和田忌的n 匹马的速度,求进行n场比赛后,田忌最多可以得到的钱(或
最少输的钱)。-Tian Ji' s horse assumptions which the winner can get ¥ 200 from the other hand, the loser must give each other ¥ 200, the draw of pay. Known King of Qi always in accordance with the speed from largest to smallest sent a horse race, Tian Ji to use what strategy to make their own money up (or lose money at least). Programming task given the speed of the horse by the King of Qi and Tian Ji n seek n games, Tian Ji can get up the money (or at least lose money).
假设其中胜者可以从对方手中得到¥200,输者必须给对方¥200,平局各不付钱。
已知齐王总是按照速度从大到小派出马比赛,请问田忌要使用怎样的策略,才能使自己
赚的钱最多(或者输的钱最少)。
编程任务
对于给定的齐王和田忌的n 匹马的速度,求进行n场比赛后,田忌最多可以得到的钱(或
最少输的钱)。-Tian Ji' s horse assumptions which the winner can get ¥ 200 from the other hand, the loser must give each other ¥ 200, the draw of pay. Known King of Qi always in accordance with the speed from largest to smallest sent a horse race, Tian Ji to use what strategy to make their own money up (or lose money at least). Programming task given the speed of the horse by the King of Qi and Tian Ji n seek n games, Tian Ji can get up the money (or at least lose money).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
horse.cpp
horse田忌赛马问题.pdf
horse田忌赛马问题.pdf
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.