Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133591 李馥甄 最大公约数(函数) C++ Accepted 2 MS 272 KB 223 2025-10-19 16:58:21

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int gcd(int a,int b){ while(true){ int r=a%b; if(r==0){ return b; } a=b; b=r; } } int main(){ int m,n; cin>>m>>n; cout<<gcd(m,n); return 0; }