Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73962 hby 公约数问题 C++ Accepted 1 MS 272 KB 184 2024-05-20 20:26:38

Tests(10/10):


Code:

#include<iostream> using namespace std; int jc(int a,int b){ if(b==0) return a; else return jc(b,a%b); } int main(){ int a,b; cin>>a>>b; cout<<jc(a,b); return 0; }