Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78345 田苒彤 15求两个数的最大公约数 C++ Accepted 0 MS 272 KB 231 2024-06-18 19:12:45

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ long long i=1,c; long long bcs,cs,yu; cin>>bcs>>cs; while(bcs%cs!=0){ yu=bcs%cs; bcs=cs; cs=yu; } cout<<cs; return 0; }