Advertisement
Neychok

reducer

Nov 18th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import sys
  2. import re
  3.  
  4. energy = 0
  5.  
  6. for input_line in sys.stdin:
  7.     input_line = input_line.strip()
  8.     input_line = re.sub("#", "", input_line)
  9.     N, Z, B = input_line.split(" ")
  10.  
  11.     energy = float(B) * (int(Z) + int(N))
  12.  
  13.     print(f'{N} {Z} {energy}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement