Back to task

175 symbols python2
Fri Sep 23 09:22:23 2016 Sait2000
import sys
d,l=zip(*map(str.split,sys.stdin));d=map(float,d)
print'   '.join(('\ ',)+l)
for p,i in zip(d,l):print'  '.join([i]+[['%.2f'%(q/p),'1   '][p==q]for q in d]).strip()


Leave a comment

Parsed as Markdown

Login to leave a comment