Sort 6 Discussions, By:
Please Login in order to post a comment
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.
P = 15
(3, 4, 5)
perimeter = 20
EDIT: From testing, this appears to be the case.
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.
Can anyone give me some custom samples to run?
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?
Hello i'm new in those staff and i want to know what they say by:
In the first test case: 1<=P<=10^4
In the second test case: 1<=P<=10^8
In the third test case: