summaryrefslogtreecommitdiff
path: root/progs/a681.py
blob: 2282fac70743392507c9db0c46e71474bb0f3bbf (plain)
1
2
3
4
5
6
7
8
9
def max_volume (s): 
    maxvalue = 0
    i = 1
    for i in range(s - 1): 
        j = 1
        for j in range(s): 
            k = s - i - j 
            maxvalue = max(maxvalue, i * j * k)         
    return maxvalue