Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2100 | 邓小龙 | 两个数的最小公倍数 | C++ | Wrong Answer | 0 MS | 264 KB | 289 | 2023-12-09 18:14:11 |
# include<iostream> # include<cstdio> # include<iomanip> using namespace std; int main(){ int a,b,n; cin>>a>>b; if(a<b){ n=b; b=a; a=n; } int i=a+1; while(i%b==0&&i%a==0){ i++; } cout<<i; return 0; }
------Input------
107 25
------Answer-----
2675
------Your output-----
108