Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Loading Cargo by panaro32
def checkio(l):
t = [True]+[False]*(sum(l)//2)
for x in l:
for i in reversed(range(len(t)-x)):
if t[i]: t[i+x] = True
return sum(l)-2*max(i for i in range(len(t)) if t[i])
May 17, 2014