Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import sys
  4.  
  5. for line in sys.stdin:
  6. row = line
  7. n = row[6:11]
  8. n = n.strip()
  9. z = row[11:15]
  10. z = z.strip()
  11. num = row[53:64]
  12. num = num.strip()
  13.  
  14.  
  15. if z == '16':
  16. if "#" in num:
  17. num = num.replace("#", '')
  18.  
  19. value = z + '\t' + str(float(num)*(int(z) + int(n)))
  20. print('{0}\t{1}'.format(n, value) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement