| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41052 | 老方 | 最大公约数、最小公倍数 | C++ | Accepted | 0 MS | 240 KB | 201 | 2024-02-19 09:30:38 |
#include<bits/stdc++.h> using namespace std; int gcd(int a,int b){ if(b==0)return a; return gcd(b,a%b); } int main(){ int a,b; cin>>a>>b; cout<<gcd(a,b)<<','<<a*b/gcd(a,b); return 0; }