这个需要C++17版本以上的使用(建议使用C++20语言)
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; cout<<lcm(n,m); return 0; }