| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148363 | 林嘉乐 | 公约数问题 | C++ | Accepted | 0 MS | 280 KB | 432 | 2026-02-11 14:12:25 |
#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 aba(int a,int b){ if(b==0){ return a; } else{ return aba(b,a%b); } } int main(){ int a,b; cin>>a>>b; cout<<aba(a,b); return 0; }