Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146954 陈奕涵 公约数问题 C++ Accepted 1 MS 268 KB 389 2026-02-01 14:48:56

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; int gs(int a,int b){ if(b==0)return a; return gs(b,a%b); } int main(){ int q,w; cin>>q>>w; cout<<gs(q,w); return 0; }