Advertisement
malixds_

Untitled

Sep 6th, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. from math import ceil
  2.  
  3.  
  4. def main(x):
  5. res = 0
  6. n = len(x)
  7.  
  8. for i in range(1, n + 1):
  9. x2 = ceil(i / 2) - 1
  10. xn = n - i
  11.  
  12. res += 63 * (x[x2] ** 3 - x[xn] ** 2 - 67 * x[xn]) ** 4
  13.  
  14. return res
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement