| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163731 | 王润中 | 最大公约数(函数) | C++ | Accepted | 1 MS | 272 KB | 198 | 2026-10-28 21:29:47 |
#include<iostream> using namespace std; int zdgys(int a,int b){ int r=a%b; while(r!=0){ a=b; b=r; r=a%b; } return b; } int main(){ int a,b; cin>>a>>b; cout<<zdgys(a,b); }