提交时间:2023-10-04 09:52:08

运行 ID: 104814

#include<iostream> using namespace std; int main(){ int a,b,v=0; cin>>a>>b; while(a!=b){ if(a>b){ a-=b; } else{ b-=a; } v++; } cout<<v+1; return 0; }