D. Disjoint Set of Common Divisors

Problem Name:
D. Disjoint Set of Common Divisors
Site:AtCoder
Links:
Tags: