Run ID:1255
提交时间:2023-08-23 10:54:36
#include<iostream> using namespace std; int main(){ int a,b,y; cin>>a>>b; while(1){ y=a%b; if(y==0){ cout<<b;break; } else{ a=b;b=y; } } return 0; }