Horse racing

1: A total of 25 horses, the track can accommodate 5 horses at the same time, the design method to obtain the fastest 3 horses.

First, divide 25 matches into 5 groups and play 5 times to get the ranking within each group of 5 groups. Group n1 to n5

Then take the first 5 groups of each group for comparison, and get the 1st, 2nd and 3rd in this group. Called the m1 group.

The first of the m1 group can be determined to be the first of the results sought. The second of the final result may be the second of the m1 group or the second of the m1 group in the nx group, the third of the final result may be the second or third of the m1 group, the second of the m1 group in the nx group Or the third, the second of the nx group where the second of the ms group is located.

Therefore, the 5 horses in the nx group, the second and third in the m1 group, the second in the m1 group, the second in the nx group, and the third in the m1 group are compared. Called the p1 group.

The first and second in the p1 group are the second and third in the final result.

Guess you like

Origin www.cnblogs.com/cjj-ggboy/p/12711969.html