Shortest solution in Creative category for How Much Gold by DiZ
checkio=lambda a:1-sum(abs(('g'in k)-a[k])for k in a)/2
Feb. 15, 2014