Problem 2285 · Medium

Maximum Total Importance of Roads

Give the largest values to the cities with the most roads, since each city’s value is counted once per road it touches.

Open the interactive visualisation