Longer line
Здравейте, колеги.Джъжд ми дава 80% на тази задача. Може ли малко помощ за да си открия грешката.Ето го и условието:
⦁ Longer Line
You are given the coordinates of four points in the 2D plane. The first and the second pair of points form two different lines. Print the longer line in format "(X1, Y1)(X2, Y2)" starting with the point that is closer to the center of the coordinate system (0, 0) (You can reuse the method that you wrote for the previous problem). If the lines are of equal length, print only the first one.
Examples
Input Output
2
4
-1
2
-5
-5
4
-3 (4, -3)(-5, -5)
А това е моят код: https://pastebin.com/1W83Egpw
https://judge.softuni.bg/Contests/Practice/Index/305#8