Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for How Much Gold by _Chico_
from fractions import Fraction
def checkio(alloys):
bar = 0
for i in alloys.keys():
if 'gold' in i:
bar += alloys[i]
else:
bar += 1 - alloys[i]
return (bar - 1) / 2
June 1, 2021