#include <stdio.h>
int main(void) {
int a, b;
a = -3.2;
b = 1.4;
printf("max(|%d|,(%d)^3)=%d\n",a
,b
,max
(abs(a
),cube
(b
))); return 0;
}
//二つの引数の大きい方の値を返す関数
int max(int x, int y){
return (x>y)?x:y;
}
//引数の絶対値を返す関数
return (x>0)?x:-x;
}
//引数の三乗の値を返す関数
int cube(int x){
return x*x*x;
}
//main関数
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgYSwgYjsKICAgIGEgPSAtMy4yOwogICAgYiA9IDEuNDsKICAgIHByaW50ZigibWF4KHwlZHwsKCVkKV4zKT0lZFxuIixhLGIsbWF4KGFicyhhKSxjdWJlKGIpKSk7CQoJcmV0dXJuIDA7Cn0KLy/kuozjgaTjga7lvJXmlbDjga7lpKfjgY3jgYTmlrnjga7lgKTjgpLov5TjgZnplqLmlbAKaW50IG1heChpbnQgeCwgaW50IHkpewogICAgcmV0dXJuICh4PnkpP3g6eTsKfQoKLy/lvJXmlbDjga7ntbblr77lgKTjgpLov5TjgZnplqLmlbAKaW50IGFicyhpbnQgeCl7CiAgICByZXR1cm4gKHg+MCk/eDoteDsKfQoKLy/lvJXmlbDjga7kuInkuZfjga7lgKTjgpLov5TjgZnplqLmlbAKaW50IGN1YmUoaW50IHgpewogICAgcmV0dXJuIHgqeCp4Owp9CgovL21haW7plqLmlbAKCgo=