friend of a friend by Bob th

x,*p={},
for l in open(0):
 k,v=l.split(':')
 if(k in x)<1:x[k]=1
 x[k]*=int(v[2:],16)
 if(k in p)<1:p+=k,
for k in p:print(k+": $"+hex(x[k])[2:])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page