Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
732 贺思哲 最大公约数(函数) C++ Accepted 0 MS 260 KB 216 2023-03-04 16:07:43

Tests(10/10):


Code:

#include<iostream> using namespace std; int fvv(int m,int n){ int i=m; while(not(m%i==0&&n%i==0)){ i--; } return i; } int main(){ int a,b; cin>>a>>b; cout<<fvv(a,b); }