题解
2025-02-04 17:10:27
发布于:江苏
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int a,b,x=0;
cin>>a>>b;
while(a>0&&b>0){
if(a>b){
a-=b;
}else{
b-=a;
}
x++;
}
cout<<x;
return 0;
}
这里空空如也
有帮助,赞一个