Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158382 李沐阳 公约数问题 C++ Accepted 2 MS 272 KB 195 2026-08-21 13:34:49

Tests(10/10):


Code:

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