Loading problem...
A sports analytics platform tracks team rating points and refreshes world standings after each competition window.
Table: TeamPoints
Table: PointsChange
Ranking policy:
Task:
Output requirements:
Supported submission environments:
TeamPoints:
| team_id | name | points |
|---------|----------|--------|
| 1 | atlas | 2110 |
| 2 | bora | 1780 |
| 3 | celta | 1770 |
| 4 | delta | 1400 |
PointsChange:
| team_id | points_change |
|---------|---------------|
| 1 | -25 |
| 2 | -10 |
| 3 | 5 |
| 4 | 450 |[
{"team_id":1,"name":"atlas","rank_diff":0},
{"team_id":2,"name":"bora","rank_diff":-2},
{"team_id":3,"name":"celta","rank_diff":0},
{"team_id":4,"name":"delta","rank_diff":2}
]Delta climbs from rank 4 to rank 2 after a large gain, while Bora drops from rank 2 to rank 4 after losing points.
TeamPoints:
| team_id | name | points |
|---------|--------|--------|
| 101 | zara | 95 |
| 102 | alex | 90 |
| 103 | bella | 90 |
PointsChange:
| team_id | points_change |
|---------|---------------|
| 101 | -5 |
| 102 | 0 |
| 103 | 0 |[
{"team_id":101,"name":"zara","rank_diff":-2},
{"team_id":102,"name":"alex","rank_diff":1},
{"team_id":103,"name":"bella","rank_diff":1}
]All teams end at 90 points. Lexicographic order (alex < bella < zara) decides final ranking.
TeamPoints: []
PointsChange: [][]No teams means no ranking-difference rows.
Constraints