Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculate_result1(m, z):
- return sum([45 + z ** 3 + 63 * k + 1 for k in range(1, m + 1)])
- def calculate_result2(m, n, a):
- return sum([j ** 4 + (38 * k ** 3 - 9 * c) ** 5 + 98 * c
- for j in range(1, n + 1)
- for c in range(1, a + 1) for k in range(1, m + 1)])
- def main(m, z, a, n):
- result1 = calculate_result1(m, z)
- result2 = calculate_result2(m, n, a)
- result = result2 + result1
- return float('{:.2e}'.format(result))
Add Comment
Please, Sign In to add comment