Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133316 李朋秦 公约数问题 C++ Accepted 2 MS 272 KB 188 2025-10-18 14:40:56

Tests(10/10):


Code:

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