Задача 02. Center Point (Python Fundamentals - Exercise: Functions, More Exercise)
Здравейте,
Имам затруднения със задача 2.Center Point (Python Fundamentals - Exercise: Functions, More Exercise) получавам 80/100 в Judge.
2.Center Point
You are given the coordinates of two points on a Cartesian coordinate system - X1, Y1, X2 and Y2. Create a method that prints the point that is closest to the center of the coordinate system (0, 0) in the format (X, Y). If the points are on a same distance from the center, print only the first one.
Examples
Input |
Output |
2 4 -1 2 |
(-1, 2) |
https://judge.softuni.bg/Contests/Practice/Index/1729#1
Моля ако е възможно, колега който е решил задачата да погледне решението ми тук:
https://pastebin.com/eNtBhB77
и да ми даде насоки, къде греша.
Поздрави :-)
Thanks for your helpful information. I have been struggling to find many questions about this issue. I will follow you! run 3