| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64831 | 张誉腾 | 最大公约数(函数) | C++ | Accepted | 2 MS | 276 KB | 293 | 2024-01-22 10:30:01 |
#include<bits/stdc++.h> using namespace std; int jinitaimei(int m, int n) { while (n != 0) { int t =m%n; m =n; n =t; } return m; } int main() { int m,n; cin>>m>>n; int w=jinitaimei(m,n); cout<<w<<endl; return 0; }