Run ID:140461
提交时间:2025-12-14 15:39:04
#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 x,int y){ int a=x%y; while(a){ x=y; y=a; a=x%y; } cout<<y; return y; } int main(){ int m,n; cin>>m>>n; a(m,n); return 0; }