| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157843 | 孔声豪 | 最大公约数(函数) | C++ | Accepted | 1 MS | 272 KB | 208 | 2026-08-18 14:27:59 |
#include<bits/stdc++.h> using namespace std; int ys(int x,int y){ int j; while(y!=0){ j=x%y; x=y; y=j; } return x; } int main(){ int n,m; cin>>n>>m; cout<<ys(n,m); return 0; }