Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148583 刘益梵 最大公约数(函数) C++ Accepted 0 MS 272 KB 215 2026-02-26 15:48:36

Tests(10/10):


Code:

#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; }