Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
41055 WZH 求三位数各数位中最大值 C++ 解答错误 1 MS 240 KB 203 2024-02-19 09:32:08

Tests(0/1):


#include<iostream> using namespace std; int gcb(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; }


测评信息: