Integral algorithm of men's basketball world championship

In the group stage, the 24 teams in the final stage of the World Championships were divided into four groups by drawing lots, and the group singles were circulated in each group. The top four teams in each group are qualified and ranked according to the points system. According to the regulations of FIBA, if you win a game, you will get 2 points, if you lose a game, you will get 1 point, and if you abstain or are disqualified, you will get 0 points.

(1) scores are the highest;

(2) If there are two teams with the same score, compare the winning and losing relationship between them; If both Argentina and Serbia in Group A are 4 wins/KLOC-0 losses, but Argentina wins the match against Serbia, then Argentina ranks first.

(3) If there are three or more teams with the same points, first compare the winning rates of the three teams against each other; For example, in Group C, Russia, Puerto Rico and China are in the same score, and among the three teams, China beat Russia and Puerto Rico and Puerto Rico beat Russia, so the ranking of the three teams in Group C is China, Puerto Rico and Russia.

(4) In the case of (3), there are still two teams with the same winning percentage, so the two teams will judge the ranking according to the winning-losing relationship. For example, in Group A, Serbia, Australia, Germany and Angola have equal points, and the winning percentage of Serbia and Australia in the four teams is 2 wins 1 negative; However, Angola and Germany are both 1 win and 2 losses, Serbia wins Australia and Germany wins Angola, so the four teams are ranked Serbia, Australia, Germany and Angola in turn.

(5) In the case of (3), there are still three or more teams with the same winning percentage. For example, in case (3), Russia beat China with 100-90, China beat Puerto Rico with 105-85, and Puerto Rico beat Russia with 95-90. The winning percentage of all three teams is 50%. Such as (90+105)/(100+85) =105.4% in China and (100+90)/(90+95) =1Russian.