Project Euler #139: Pythagorean tiles

  • + 0 comments

    In the problem description, is perimeter P referring to the perimeter of the triangles? I assume this is the case since otherwise the given test case P = 15 would give a result of 0, since the first Pythagorean triple is (3, 4, 5), which yields a square with perimeter = 20.

    EDIT: From testing, this appears to be the case.