Educational Codeforces Round 58 (Rated for Div. 2) D.GCD Counting
D. GCD Countingtime limit per test4.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a tree consisting of n vertices. A number is written on each ...