Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import re
- energy = 0
- for input_line in sys.stdin:
- input_line = input_line.strip()
- input_line = re.sub("#", "", input_line)
- N, Z, B = input_line.split(" ")
- energy = float(B) * (int(Z) + int(N))
- print(f'{N} {Z} {energy}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement