Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133325 李明秦 公约数问题 C++ Accepted 2 MS 280 KB 204 2025-10-18 14:43:49

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int y(int a,int b){ if(a%b==0){ return b; }else{ return y(b,a%b); } } int main() { int x,z; cin>>x>>z; cout<<y(x,z); return 0; }