Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126179 | 罗锦墨 | 15求两个数的最大公约数 | C++ | Wrong Answer | 0 MS | 268 KB | 186 | 2025-07-16 16:12:24 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a%b==0 ){ cout<<b; return 0; } if(b%a==0 ){ cout<<a; return 0; } return 0; }
------Input------
49 47
------Answer-----
1
------Your output-----