A29904 | 正经递归题解
2025-07-16 10:27:41
发布于:北京
3阅读
0回复
0点赞
这通过率被我拉到正数了,呵呵
be————————————————————
#include<bits/stdc++.h>
using namespace std;
int gcd(int a,int b){
if(b==0){
return a;
}
else{
return gcd(b,a%b);
}
}
int main(){
int n,m;
cin>>n>>m;
cout<<gcd(n,m);
return 0;
}
这里空空如也
有帮助,赞一个