fork download
  1. # your code goes here
  2.  
  3. x = [1,2,3,4,5]
  4.  
  5. y = [3,4,5,6,2]
  6.  
  7. x.sort()
  8. y.sort(reverse=True)
  9.  
  10. s = [a*b for a,b in zip(x,y)]
  11.  
  12. print(sum(s))
  13.  
Success #stdin #stdout 0.07s 14024KB
stdin
Standard input is empty
stdout
50