Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Irrational solution in Creative category for Oil Pie by veky
def divide_pie(g,π=1):
for m in g:π-=__import__("fractions").Fraction(m,sum(map(abs,g)))*(m>0 or-π)
return π.numerator,π.denominator
July 24, 2014