搜索资源列表
田忌赛马问题
- 田忌与齐王赛马,双方各有n匹马参赛(n<=100),每场比赛赌注为1两黄金,现已知齐王与田忌的每匹马的速度,并且齐王肯定是按马的速度从快到慢出场,现要你写一个程序帮助田忌计算他最好的结果是赢多少两黄金(输用负数表示)。(Tian and the king's horse racing, the two sides each have n horse (n < = 100), each match bet 1 two gold, are now known to the king of