Back to task

227 symbols python2
Mon Dec 29 17:24:54 2014 PFischbeck
import sys
c=[]
d=[]
for s in sys.stdin:
 [a,b]=s.split()
 d+=[float(a)]
 c+=[b]
print"\\    "+"   ".join(c)
l=range(len(c))
for i in l:print"  ".join([c[i]]+[("%.2f"%(d[j]/d[i]),"1"+"   "*(not(i==j==l[-1])))[i==j] for j in l])


Leave a comment

Parsed as Markdown

Login to leave a comment