Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
55989 laichihao 最大公约数、最小公倍数 C++ 通过 0 MS 236 KB 184 2024-11-08 18:03:21

Tests(1/1):


#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; }


测评信息: