Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33333 | lnx | 分田地 | C++ | Accepted | 0 MS | 252 KB | 167 | 2023-12-08 19:01:29 |
#include<iostream> #include<algorithm> using namespace std; int main() { int m,n,a,cnt=0; cin>>m>>n; a=__gcd(m,n); int s=m*n/a/a; cout<<s; return 0; }