Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
41058 WZH 最大公约数、最小公倍数 C++ Compile Error 0 MS 0 KB 203 2024-02-19 09:34:25

Tests(0/0):


#include<iostream> using namespace std; int gcd(int a,int b){ if(b==0) return a; return gcb(b,a%b); } int main() { int n,m; cin>>m>>n; int u=gcb(m,n); cout<<u<<","<<m*n/u; return 0; }


Judgement Protocol: