Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137537 杨启宏 两个数的最小公倍数 C++ Accepted 1 MS 280 KB 445 2025-11-18 19:29:46

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=0; cin>>a>>b; c=a; while(1){ if(c%a==0&&c%b==0){ cout<<c<<" "; break; } c++; } return 0; }