#include <stdio.h>
double cube(double);
double max(double,double);
int main(void) {
double a, b;
a = -3.2;
b = 1.4;
printf("max(|%f|,(%f)^3)=%f\n",a
,b
,max
(abs(a
),cube
(b
))); return 0;
}
double max(double x, double y){
return (x>y)?x:y;
}
return (x>0)?x:-x;
}
double cube(double x){
return x*x*x;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgogICAgCiAgICBkb3VibGUgYWJzKGRvdWJsZSk7CiAgICBkb3VibGUgY3ViZShkb3VibGUpOwogICAgZG91YmxlIG1heChkb3VibGUsZG91YmxlKTsKICAgIAppbnQgbWFpbih2b2lkKSB7CiAgICBkb3VibGUgYSwgYjsKICAgIGEgPSAtMy4yOwogICAgYiA9IDEuNDsKICAgIHByaW50ZigibWF4KHwlZnwsKCVmKV4zKT0lZlxuIixhLGIsbWF4KGFicyhhKSxjdWJlKGIpKSk7CQoJcmV0dXJuIDA7Cn0KCmRvdWJsZSBtYXgoZG91YmxlIHgsIGRvdWJsZSB5KXsKCSAgICByZXR1cm4gKHg+eSk/eDp5Owp9Cgpkb3VibGUgYWJzKGRvdWJsZSB4KXsKICAgIHJldHVybiAoeD4wKT94Oi14Owp9CiAKCmRvdWJsZSBjdWJlKGRvdWJsZSB4KXsKICAgIHJldHVybiB4KngqeDsKfQoKCgkgICAgCiA=