Блог пользователя amirmd76

Автор amirmd76, 10 лет назад, По-английски

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

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

  • Проголосовать: нравится
  • -4
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

These points don't create right triangle.

»
10 лет назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

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).