Advertisement
malixds_

Untitled

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