#include <stdio.h>
int max(int x, int y);
int main(void) {
int a = 1;
int b = 5;
int c = 3;
int d = 4;
int maximum = max(max(a, b), max(c, d));
printf("最大値は: %d\n", maximum
);
return 0;
}
int max(int x, int y) {
return (x > y) ? x : y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWF4KGludCB4LCBpbnQgeSk7CgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgYSA9IDE7CiAgICBpbnQgYiA9IDU7CiAgICBpbnQgYyA9IDM7CiAgICBpbnQgZCA9IDQ7CgogICAgaW50IG1heGltdW0gPSBtYXgobWF4KGEsIGIpLCBtYXgoYywgZCkpOwoKICAgIHByaW50Zigi5pyA5aSn5YCk44GvOiAlZFxuIiwgbWF4aW11bSk7CgogICAgcmV0dXJuIDA7Cn0KCgppbnQgbWF4KGludCB4LCBpbnQgeSkgewogICAgcmV0dXJuICh4ID4geSkgPyB4IDogeTsKfQoK