Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139141 黄芃硕 最大公约数(函数) C++ Accepted 0 MS 280 KB 183 2025-12-01 18:21:48

Tests(10/10):


Code:

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