Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163781 汪明轩 最大公约数(函数) C++ Accepted 2 MS 272 KB 190 2026-10-30 20:22:04

Tests(10/10):


Code:

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