Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85378 王陈淼 两个数的最小公倍数 C++ Accepted 1 MS 268 KB 242 2024-07-17 11:14:23

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int i=1; while(1){ if(i%a==0&&i%b==0){ cout << i<< endl; break; } i++; } return 0; }