1 solutions

  • 0
    @ 2025-11-5 18:50:16

    C :

    #include<stdio.h>
    #define MAX(x,y) (x)>(y)? (x):(y)
    double max(double x,double y,double z)
    {
    	double a;
    	a=x>y?x:y;
    	return(a>z?a:z);
    }
    int main()
    {
    	double a,b,c;
    	scanf("%lf%lf%lf",&a,&b,&c);
    	printf("%.3lf\n",max(a,b,c));
    	printf("%.3lf\n",MAX(MAX(a,b),c));
    	return 0;
    }
    
    • 1

    Information

    ID
    19068
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By