| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147951 | 张晓冉 | 最大公约数 | C++ | Accepted | 0 MS | 272 KB | 428 | 2026-02-09 09:21:51 |
#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 x(int n,int m){ if(m == 0){ return n; }else{ return x(m,n % m); } } int main(){ int n,m; cin>>n>>m; cout<<x(n,m)<<endl; return 0; }