Run ID:1252

提交时间:2023-08-23 10:53:29

#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; }