Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128675 古浩圳bylz 求最大公约数和最小公倍数 C++ 通过 100 0 MS 248 KB 196 2024-01-26 08:44:03

Tests(3/3):


#include<iostream> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a>>b; e=a;f=b; c=a%b; while(c>0){ e=f; f=c; c=e%f; } d=a*b/f; cout<<f<<" "<<d; return 0; }


测评信息: