开了long long 85pts !!!
查看原帖
开了long long 85pts !!!
1035905
wenjunyi楼主2024/5/7 22:05
#include <bits/stdc++.h>
using namespace std;
long long x,y,z;
int main(){
	ios::sync_with_stdio(0),cin.tie(0);
	cin>>x>>y>>z;
	long long a=x*y/__gcd(x,y),b=x*z/__gcd(x,z);
	printf("%lld",a*b/__gcd(a,b));
	return 0;
}

2024/5/7 22:05
加载中...