Advertisement
MKbear

Python_3

Jun 10th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. from math import *
  2.  
  3.  
  4. def sum_1(b, c):
  5.     result = 0
  6.     for j in range(1, b+1):
  7.         result += (8 * pow((pow(j, 3) - 70 * c - 70 * pow(j, 2)), 2))
  8.     return result
  9.  
  10.  
  11. def mul_1(n, b):
  12.     result = 1
  13.     for c in range(1, n+1):
  14.         result *= sum_1(b, c)
  15.     return result
  16.  
  17.  
  18. def sum_3(a, c):
  19.     result = 0
  20.     for j in range(1, a+1):
  21.         result += (pow(abs(c), 3) + 35 * pow(j, 6))
  22.     return result
  23.  
  24.  
  25. def sum_4(n, a):
  26.     result = 0
  27.     for c in range(1, n+1):
  28.         result += sum_3(a, c)
  29.     return result
  30.  
  31.  
  32. def main(b, n, a):
  33.     result = mul_1(n, b) + sum_4(n, a)
  34.     return result
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement