| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 87300 | Kevin | 15求两个数的最大公约数 | C++ | Accepted | 1 MS | 276 KB | 164 | 2024-08-08 14:28:58 |
#include<bits/stdc++.h> 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; }