Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143465 吕毅心 公约数问题 C++ Accepted 0 MS 272 KB 424 2026-01-15 19:52:47

Tests(10/10):


Code:

#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; long long x(int a,int b){ int c=a%b; if(c==0){ return b; }return x(b,c); } int main(){ int a,b; cin>>a>>b; cout<<x(a,b); return 0; }