Run ID:129347

提交时间:2025-08-24 14:01:20

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,i; cin>>a>>b; if(a<b) i=a; else i=b; while(i>0){ if(a%i==0 && b%i==0){ cout<<i<<endl; break; } i--; } return 0; }