Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 6 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /