| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85973 | 石茂诤 | 最大公约数 | C++ | Wrong Answer | 0 MS | 268 KB | 251 | 2024-07-21 16:42:30 |
#include<iostream> #include<cmath> using namespace std; int main(){ int a,b; cin>>a>>b; for(int i=2;i<=b;i++){ if(a%i==0&&b%i==0){ cout<<i; return 0; } } cout<<"1"; return 0; }
------Input------
234 396
------Answer-----
18
------Your output-----
2