Tian Ji -- The Horse RacingTime Limit: 5000MS Memory Limit: 65536K
Total Submissions: 7104 Accepted: 2178
Description
Here is a famous story in Chinese history.
That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse racing with the king and others.
Both of Tian and the king have three horses in different classes, namely, regular, plus, and super. The rule is to have three rounds in a match; each of the horses must be used in one round. The winner of a single round takes two hundred silver dollars from the loser.
Being the most powerful man in the country, the king has so nice horses that in each class his horse is better than Tian's. As a result, each time the king takes six hundred silver dollars from Tian.
Tian Ji was not happy about that, until he met Sun Bin, one of the most famous generals in Chinese history. Using a little trick due to Sun, Tian Ji bro
poj -- 2287 Tian Ji -- The Horse Racing(田忌赛马,递归分治)
最新推荐文章于 2019-07-03 02:10:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)