Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- antimatter_cost=int(input())
- distance=input().split()
- intermediate_stop=1*antimatter_cost
- sum=0
- for i in range(len(distance)):
- sum+=int(distance[i])
- final_cost =(sum*antimatter_cost) + intermediate_stop
- print(math.ceil(final_cost/10)*10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement