求助CE
查看原帖
求助CE
1078380
tech1540楼主2024/8/25 09:54
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    double x,y,z;
    scanf("%d %d %d",&a,&b,&c);
    x=max(max(a,b),c);
    z=min(min(a,b),c);
    y=a+b+c-x-z;
    int s=z/gcd(x,z);
    int p=x/gcd(x,z);
    printf("%d / %d",p,s);
    return 0;
}

这个哪里有问题ce啊

2024/8/25 09:54
加载中...