Run ID:1246

提交时间:2023-08-23 10:41:11

#include<iostream> using namespace std; int main(){ int a,b,y,temp; cin>>a>>b; if(a<b){ temp=a; a=b; b=temp; } while(y!=0){ y=a%b; a=b; b=y; } cout<<b; return 0; }