We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f8509 commit 02155deCopy full SHA for 02155de
project_euler/problem_09/sol3.py
@@ -0,0 +1,6 @@
1
+def main():
2
+ print([a*b*c for a in range(1,999) for b in range(a,999) for c in range(b,999)
3
+ if (a*a+b*b==c*c) and (a+b+c==1000 ) ][0])
4
+
5
+if __name__ == '__main__':
6
+ main()
0 commit comments