Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148626 编程星球02 最大公约数 C++ Accepted 0 MS 268 KB 233 2026-02-28 11:13:33

Tests(1/1):


Code:

#include <iostream> #include<cstdio> using namespace std; int main() { int n,m,y=0; cin>>n>>m; while(n%m!=0){ y=n%m; n=m; m=y; } cout<<m<<endl; return 0; }