Run ID:101139
提交时间:2024-12-14 15:04:51
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int a(int n,int w){ if(n%w==0) return w; else return a(w,n%w); } int main(){ int q,e; cin>>q>>e; cout<<a(q,e); return 0; }