| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78623 | sh25_wuyy | 求两个数的最大公约数 | C++ | Accepted | 0 MS | 244 KB | 190 | 2025-12-27 08:45:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,n=0,c=0; cin>>a>>b; for(int i=1;i<=a;i++){ if(a%i==0&&b%i==0){ if(c<i)c=i; } } cout<<c; return 0; }