View Code of Problem 612

while True:
    try:
        l = [int(x) for x in input().split()];
        t = (sum(l)-max(l)-min(l))/4;
        if(t==int(t)):
            print(int(t));
        else:
            print(t);
    except:
        break;

Double click to view unformatted code.


Back to problem 612