Back to task

195 symbols python2
Fri Sep 23 09:10:22 2016 Sait2000
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!=b)][i==j]for j in l])


Leave a comment

Parsed as Markdown

Login to leave a comment