Educational Codeforces Round 106 (Rated for Div. 2)Educational Codeforces Round 106 (Rated for Div. 2)
Educational Codeforces Round 106 (Rated for Div. 2)Educational Codeforces Round 106 (Rated for Div. 2)D. The Number of Pairs题意:给定 c,d,xc, d, xc,d,x,让你求有多少对a,ba, ba,b可以让,c∗lcm(a,b)−d∗gcd(a,b)=xc*lcm(a, b) - d * gcd(a, b) = xc∗lcm(a,b)−d∗gcd(a,b)=x题解:设