Problem #210

Maximising a Ratio
Public 02/08/15 10xp Programming 29.4%

Consider a Phytagorean right-angled triangle with lengths
a, b, and c (a < b < c).

Its Perimeter: P=a+b+c
Its Area: A=a*b/2

Find the (a,b,c) triple with maximum A/P ratio if P<=10^17.

Answer format: a,b,c

Example: 280,294,406 if P<=10^3
A=41160 P=980 A/P=42

[My timing: 40s]



You need to be a member to keep track of your progress.
Register


Time may end, but hope will last forever.

Other Challenge Sites

Contact

elasolova
[64][103][109][97][105][108][46][99][111][109]