Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95395 朱安然 两个数的最小公倍数 C++ Accepted 1 MS 276 KB 178 2024-10-27 14:27:35

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,c=1; cin>>n>>m; while(true){ if(c % n == 0 && c % m==0){ break; } c++; } cout<<c; return 0; }