| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140461 | 顾文博 | 最大公约数(函数) | C++ | Accepted | 0 MS | 272 KB | 446 | 2025-12-14 15:39:04 |
#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 x,int y){ int a=x%y; while(a){ x=y; y=a; a=x%y; } cout<<y; return y; } int main(){ int m,n; cin>>m>>n; a(m,n); return 0; }