Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128549 胥博雯 两个数的最小公倍数 C++ Accepted 1 MS 276 KB 229 2025-08-18 12:07:29

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,n,c,a1,b1; cin>>a>>b; a1=a; b1=b; while(b!=0){ c=a%b; a=b; b=c; } cout<<a1*b1/a; return 0; }