Rosetta Problems

GCD of Path Weights

https://atcoder.jp/contests/arc144/tasks/arc144_e