Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95689 林嘉乐 两个数的最小公倍数 C++ Accepted 1 MS 276 KB 243 2024-11-01 20:01:32

Tests(10/10):


Code:

#include<iostream> #include<iomanip> using namespace std; int main(){ int a,b,t,a1,b1,n; cin>>a>>b; a1=a; b1=b; while(b!=0) { t=a%b; a=b; b=t; } n=a1*b1/a; cout<<n<<endl; return 0; }