Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135026 陈华仁星 公约数问题 C++ Accepted 2 MS 268 KB 213 2025-11-02 11:30:24

Tests(10/10):


Code:

#include <iostream> using namespace std; int gcd(int a,int b) { if(a%b==0) { return b; } return gcd(b,a%b); } int main() { int a,b; scanf("%d%d",&a,&b); printf("%d",gcd(a,b)); return 0; }