mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Improved Code and removed Warnings (#483)
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(input())
|
||||
N = int(raw_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