| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142484 | 夏梓瑞 | 公约数问题 | C++ | Accepted | 1 MS | 268 KB | 410 | 2026-01-10 17:25:47 |
#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 c,int b){ if(b==0) return c; else return a(b,c%b); } int main(){ int b,c; cin>>b>>c; cout<<a(b,c); return 0; }