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