Advertisement
CR7CR7

space

May 25th, 2022
919
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement