mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
Create project Euler problem 9 sol3.py (#645)
This commit is contained in:
parent
02f850965d
commit
02155def00
6
project_euler/problem_09/sol3.py
Normal file
6
project_euler/problem_09/sol3.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
def main():
|
||||
print([a*b*c for a in range(1,999) for b in range(a,999) for c in range(b,999)
|
||||
if (a*a+b*b==c*c) and (a+b+c==1000 ) ][0])
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Reference in New Issue
Block a user