| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 8436 | 刘逸杭 | 最大公约数(函数) | C++ | Accepted | 0 MS | 268 KB | 257 | 2025-12-21 10:21:24 |
#include<bits/stdc++.h> using namespace std; int fac(int m,int n){ int a,b=m,c=n; while(c!=0){ a=b; b=c; c=a%b; } return b; } int main(){ int m,n; cin>>m>>n; cout<<fac(m,n); return 0; }