| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163843 | 汪明轩 | 最大公约数(函数) | C++ | Accepted | 1 MS | 272 KB | 208 | 2026-10-31 10:42:18 |
#include<bits/stdc++.h> using namespace std; int gys(int a,int b){ int r=a%b; while(r){ a=b; b=r; r=a%b; } return b; } int main(){ int m,n; cin>>m>>n; cout<<gys(m,n); return 0; }