Advertisement
CR7CR7

space

May 25th, 2022
1,150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import math
  2. antimatter_cost=int(input())
  3. distance=input().split()
  4. intermediate_stop=1*antimatter_cost
  5. sum=0
  6. for i in range(len(distance)):
  7.     sum+=int(distance[i])
  8.  
  9. final_cost =(sum*antimatter_cost) + intermediate_stop
  10. print(math.ceil(final_cost/10)*10)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement