Run ID:151676
提交时间:2026-04-17 19:27:01
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,y=1,max=0; cin>>a>>b; while(y<=a){ if(a%y==0&&b%y==0) max=y; y++; } cout<<max; return 0; }