Loading repovive.com/contests/4/problems/F
You are given a tree with vertices.
For each with , define as follows.
You choose exactly edges of the tree and mark them. Then you construct a graph on the same vertices, where you add an edge between two distinct vertices and if and only if the unique simple path between and in the tree contains at least one marked edge.
Let be the size of a maximum matching in .
Then is the maximum possible value of over all choices of marked edges.
For each test case, output .