Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141898 房知谦 最大公约数 C++ Wrong Answer 0 MS 272 KB 420 2025-12-28 20:20:45

Tests(0/1):


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(){ int m,n; cin>>m; cin>>n; int max=0; for(int i=1;i<=m;i++){ if(i%m==0&&i%n==0){ max=i; } } cout<<max; }


Run Info:

------Input------
234 396
------Answer-----
18
------Your output-----
0