For each category the times of the individual Climb were recorded to crown the Kings (KOM) and the Queens of the mountain (QOM).
Here are the rankings for all the routes:

SHORT ROUTE: time on the Cancano

MEDIUM ROUTE: sum of the times Teglio + Cancano

LONG ROUTE: sum of times Teglio + Mortirolo + Cancano