码风优良的极简版

菜就多吃菜  •  25天前


include

include

include

using namespace std;

int main(){

int m,n,c;
cin>>m>>n;
c=__gcd(m,n);
cout<<c<<" "<<n*m/c<<endl;
return 0;

}


评论:

请先登录,才能进行评论