| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148581 | 刘益梵 | 最大公约数(函数) | C++ | Accepted | 0 MS | 272 KB | 215 | 2026-02-26 15:48:36 |
#include<bits/stdc++.h> using namespace std; int zdgys(int n,int m){ int x=n%m; while(x!=0){ n=m; m=x; x=n%m; } return m; } int main(){ int n,m; cin>>n>>m; cout<<zdgys(n,m); return 0; }