提交时间:2024-04-18 13:15:16
运行 ID: 143729
#include<bits/stdc++.h> using namespace std; int ans=1,a,b; int main(){ cin>>a>>b; while(a!=b){ if(a>b)a-=b; else b-=a; ans++; } cout<<ans; return 0; }