Robuta

https://mcpt.ca/problem/hld
There is a bidirectional unweighted connected graph with N nodes, numbered from 1 to N, each with a value a_i.
selective cuttingcompetitive programmingmcptmackenzieteam