This commit is contained in:
t3xhno 2024-02-06 16:09:29 +01:00
parent 209d03629f
commit 640578455e

5
src/problem8.py Normal file
View File

@ -0,0 +1,5 @@
import math
triplets = [(a, b, c) for a in range(1, 500) for b in range(1, 500) for c in range(1, 500) if math.pow(a, 2) + math.pow(b, 2) == math.pow(c, 2) and a + b + c == 1000]
print(triplets[0][0] * triplets[0][1] * triplets[0][2])