Задача 03. Longer Line (Python Fundamentals - Exercise: Functions, More Exercise)
Здравейте,
Сега пък имам затруднения със задача 3. Longer Line (Python Fundamentals - Exercise: Functions, More Exercise) получавам 60/100 в Judge.
3. 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. The resulting coordinates must be formated to the lowest integer.
Examples
Input
2
4
-1
2
-5
-5
4
-3
Output
(4, -3)(-5, -5)
https://judge.softuni.bg/Contests/Practice/Index/1729#2
Моля ако е възможно, колега който е решил задачата да погледне решението ми тук:
https://pastebin.com/giBwbTis
и да ми даде насоки, къде греша.
Поздрави :-)