Codeforces 1108F MST + LCA F. MST Unification Description: You are given an undirected weighted connected graph with \(n\) vertices and \(m\) edges without loops and multiple edges. The \(i\)-th edge is \(e_i = (u_i, v_i, w_i)\); the distance between…