Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158388 张蔚林 公约数问题 C++ Accepted 1 MS 272 KB 184 2026-08-21 13:41:56

Tests(10/10):


Code:

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