3.Longer Line C#
Здравейте банда,
Може ли малко Help?
Опитавам се да реша по-долната задача, но judge ми дава 80/100 и не знам къде ми е грешката.
Кодът ми е: https://pastebin.com/wm0ZTwDZ
Задачата е :
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) |