Project Euler #139: Pythagorean tiles

Sort by

recency

|

7 Discussions

|

  • + 0 comments

    is this right outputs??

    Input (stdin)
    5
    10000000000
    100000000000
    1000000000000
    10000000000000
    100000000000000

    Your Output (stdout)
    1732807630
    17328488665
    173286191585
    1732866043107
    17328673478678

  • + 0 comments

    Hey I am new can you tell me how i will get those pythagorean triangles values?

    My method works for the given input and even for the other inputs if given explicitly but i don't know how to make it implicit.

  • + 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.

  • + 0 comments

    Can anyone give me some custom samples to run?

  • + 1 comment

    This might be a stupid question, but I can't seem to understand the problem. How come we are not given the size of triangles which are supposed to fill the perimiter P?