Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95652 吕毅心 两个数的最小公倍数 C++ Accepted 1 MS 272 KB 275 2024-11-01 17:32:24

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int a,b,i=1,n; cin>>a>>b; while(1){ if(i%a==0&&i%b==0){ break; } i++; } cout<<i; return 0; }