long long gcd(long long a,long long b)
{ return (b>0)?gcd(b,a%b):a;}
long long lcm(long long a,long long b)
{
return a/gcd(a,b)*b;
}
gcd lcm
最新推荐文章于 2024-02-08 17:42:25 发布
long long gcd(long long a,long long b)
{ return (b>0)?gcd(b,a%b):a;}
long long lcm(long long a,long long b)
{
return a/gcd(a,b)*b;
}