Back to task

203 symbols python2
Fri Oct 9 20:01:11 2015 BogdanShevchenko
import sys
d,l={},[]
for s in sys.stdin:a,b=s.split();d[b]=float(a);l+=[b]
print '   '.join(['\ ']+l)
for i in l:print '  '.join([i]+[["{0:.2f}".format(d[j]/d[i]),'1'+'   '*(i!=l[-1])][i==j] for j in l])


Leave a comment

Parsed as Markdown

Login to leave a comment