提交时间:2024-11-08 19:28:56
运行 ID: 56018
#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; }