| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67686 | 彭慕允 | 公约数问题 | C++ | Accepted | 1 MS | 268 KB | 222 | 2024-03-17 12:12:41 |
#include<bits/stdc++.h> using namespace std; int gcd(int a,int b){ if(a%b==0){ return b; }else{ return gcd(b, a%b); } } int main() { int a, b; cin>>a>>b; int ans=gcd(a,b); cout<<ans; return 0; }