amirmd76's blog

By amirmd76, 10 years ago, In English

my code returns this output for test 2: YES 0 0 3 4 4 3

but it's wrong, what's wrong about it?

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

These points don't create right triangle.

»
10 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

ur answer is not right because the output is not a right triangle.

try fixing one point (3,4) and rotating the other point (4,3) about either/both of the axes. the points after rotation are (4,-3), (-4,3) and (-4,-3), the first two of which form right triangles and will give AC (along with (0,0) and (3,4) ofcourse).