Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
114724 黎瑾萱 最大公约数(函数) C++ Accepted 1 MS 268 KB 201 2025-03-23 12:34:48

Tests(10/10):


Code:

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