USACO 2021 January Contest, Platinum Problem 1. Sum of Distances
USACO 2021 January Contest, Platinum Problem 1. Sum of Distances Bessie has a collection of connected, undirected graphs G1,G2,…,GKG1,G2,…,GK (2≤K≤5⋅1042≤K≤5⋅104). For each 1≤i≤K1≤i≤K, GiGi has exa...