#include <stdio.h>
//二つの引数の大きい方の値を返す関数
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関数
int main(void) {
int a, b;
a = 3;
b = -2;
printf("max(|%d|,(%d)^3)=%d\n",a
,b
,max
(abs(a
),cube
(b
))); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgovL+S6jOOBpOOBruW8leaVsOOBruWkp+OBjeOBhOaWueOBruWApOOCkui/lOOBmemWouaVsAppbnQgbWF4KGludCB4LCBpbnQgeSl7CiAgICByZXR1cm4gKHg+eSk/eDp5Owp9CgovL+W8leaVsOOBrue1tuWvvuWApOOCkui/lOOBmemWouaVsAppbnQgYWJzKGludCB4KXsKICAgIHJldHVybiAoeD4wKT94Oi14Owp9CgovL+W8leaVsOOBruS4ieS5l+OBruWApOOCkui/lOOBmemWouaVsAppbnQgY3ViZShpbnQgeCl7CiAgICByZXR1cm4geCp4Kng7Cn0KCi8vbWFpbumWouaVsAppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgYSwgYjsKICAgIGEgPSAzOwogICAgYiA9IC0yOwogICAgcHJpbnRmKCJtYXgofCVkfCwoJWQpXjMpPSVkXG4iLGEsYixtYXgoYWJzKGEpLGN1YmUoYikpKTsJCglyZXR1cm4gMDsKfQo=