Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112225 常钰杰 最大公约数(函数) C++ Accepted 1 MS 268 KB 287 2025-03-08 18:16:43

Tests(10/10):


Code:

#include<iostream> using namespace std; long long OjLd(long long a,long long b) { int c; while(b!=0) { c=a%b; a=b; b=c; } return a; } int main() { int a,b; int ans; cin>>a>>b; ans=OjLd(a,b); cout<<ans; }