| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 14259 | chibubao | 求两个数的最大公约数 | C++ | Accepted | 0 MS | 252 KB | 160 | 2023-04-12 03:10:22 |
#include<iostream> using namespace std; int main() { int a,b,i,cnt=0; cin>>a>>b; for(i=a;;i--) if(a%i==0&&b%i==0) { cout<<i; return 0; } }