Back to task

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


Leave a comment

Parsed as Markdown

Login to leave a comment