Sunday Times Teaser 3195 – Garden Divide
by Howard Williams
Published Friday December 15 2023 (link)
I have a triangular-shaped garden, the sides of which are an exact number of feet long. To improve its usefulness, I’ve decided to partition it by building a straight fence from one corner to the centre of the opposite side. The length of this fence is exactly 51 feet and the side it attaches to is now 26 feet long each side of the fence.
What, in ascending order, are the lengths of the other two sides of my garden?
3 Comments
Leave one →
You can also break if c > d or use:
for c in range(a – b + 1, int((a * a + b * b) ** (1/2)) + 1):