Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147433 曾钰涵 两个数的最小公倍数 C++ Accepted 0 MS 272 KB 217 2026-02-05 10:52:07

Tests(10/10):


Code:

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