| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84302 | 刘慕莀 | 最大公约数(函数) | C++ | Wrong Answer | 1 MS | 268 KB | 208 | 2024-07-15 15:12:51 |
#include<bits/stdc++.h> using namespace std; int a(int n,int m){ int c=n%m; while(c!=0) { n=m; m=c; c=n%m; } return m; } int main(){ int a,b; cin>>a>>b; cout<<(a,b)<<endl; return 0; }
------Input------
49 47
------Answer-----
1
------Your output-----
47