Run ID:138874
提交时间:2025-11-30 11:51:53
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,d=1; cin>>a>>b; while(a<b){ if(a%d==0 and b%d==0){ d--; } b=d; } cout<<d; return 0; }