提交时间:2020-11-07 21:36:28

运行 ID: 9028

#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,y; cin>>a>>b; while(a%b!=0){ y=a%b; a=b; b=y; } cout<<b; return 0; }