提交时间:2024-11-08 18:03:21
运行 ID: 55989
#include<iostream> #include<algorithm> using namespace std; int main(){ int a,b; cin>>a>>b; int m=__gcd(a,b); int n=a*b/m; cout<<m<<","<<n; return 0; }