You are viewing a single comment's thread. Return to all comments →
For 50 the answer should be 0.
Because according to your answer that is 6 which is only possible when you add all the right triangles of length <50.
But according to your question the lenght of wire must be equal to the sum of all the sides of triangle
but if you are giving 50 as your input and giving 6 as an output which means that you are incresing your count values for 12,24,30,36,40,48 which gives you answer 6. while doing that you are contradiciting 1 condition that is sum of edges should be equal to the given length.
please reply me soon with your suggestion.
Read carefully the problem and what should be the output, you are getting it:
"Because according to your answer that is 6 which is only possible when you add all the right triangles of length <50"
Well,the question is clear, but the example about "120" is absurd.By following the question 120 has 22 possibilities of forming a integer sided triangle.
I can see in your profile that you are Indian, and I suppose that English is not your native language. Many times the problem statement is an extra challenge for us that do not speak English natively, and is something that we must learn to overcome. A single word can change the things a lot, and the answer of the problem.
Yup...I completely agree with you on that...and btw it's "for us who do not" not "for us 'that' do not"...:P..no offence...:)