题目链接:https://vjudge.net/problem/HDU-4497 题意:求有多少组(x,y,z)满足gcd(x,y,z)=a,lcm(x,y,z)=b. 思路:对于x,y,z都可以写成x = p1^a1*p2^a2*p3^a3....pn^an;y = p1^b1*p2^b2*p3^b3....pn^bn;z=p1^c1*p2^c2*p3^c3....pn^cn;x,y,z的最大公约数可以写成gcd(x,y,z) = p1^min(a1,b1,c1)*p2^min(a2,b2,c…