Skip to content

Commit 02155de

Browse files
SandersLinpoyea
authored andcommitted
Create project Euler problem 9 sol3.py (TheAlgorithms#645)
1 parent 02f8509 commit 02155de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

project_euler/problem_09/sol3.py

+6
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)