mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
all valid python 3
This commit is contained in:
@ -6,7 +6,7 @@ Find maximum possible value of product of a,b,c among all such Pythagorean tripl
|
||||
|
||||
product=-1
|
||||
d=0
|
||||
N = int(raw_input())
|
||||
N = int(input())
|
||||
for a in range(1,N//3):
|
||||
"""Solving the two equations a**2+b**2=c**2 and a+b+c=N eliminating c """
|
||||
b=(N*N-2*a*N)//(2*N-2*a)
|
||||
|
Reference in New Issue
Block a user