Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137539 左锶焜 两个数的最小公倍数 C++ Accepted 1 MS 280 KB 460 2025-11-18 19:37:15

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a,b,c; cin>>a>>b; c=a; while(1){ if(c%a==0&&c%b==0){ cout<<c<<" "; break; } c++; } return 0; }