| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 128780 | 邓庆凯 | 求最大公约数和最小公倍数 | C++ | Wrong Answer | 33 | 0 MS | 248 KB | 214 | 2024-01-26 09:37:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; int a,b; cin>>m>>n; int r=m%n; while(r!=0){ m=n; n=r; r=m%n; a=m; b=n; } cout<<n<<endl; cout<<a*b/n; return 0; }