Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7961 刘逸杭 两个数的最小公倍数 C++ Accepted 0 MS 264 KB 251 2025-05-31 19:30:16

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,gcd; cin>>a>>b; int tempa=a,tempb=b; c=a%b; while(c){ a=b; b=c; c=a%b; } gcd=b; cout<<tempa*tempb/gcd; return 0; }