#include <cstdio> #include <iostream> #include <string> using namespace std; int fun(int a,int b){ int max,min; if(a >= b){ max = a; min = b; }else{ max = b; min = a; } if(min == 0){ return max; }else{ return fun(min,max%min); } } int func(int a,int b){ int tem = fun(a,b); return a*b/tem; } int main(){ int a,b; cin >> a >> b; cout << fun(a,b); }
09-14
7967
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)