We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Fundamentals
- Find the Point
- Discussions
Find the Point
Find the Point
Sort by
recency
|
361 Discussions
|
Please Login in order to post a comment
def findPoint(px, py, qx, qy): return [(2*qx - px), (2*qy - py)]
def findPoint(px, py, qx, qy): dx = qx - px dy = qy - py rx = qx + dx ry = qy + dy return [rx, ry]
Numerous modules and libraries are imported, including math, collections, datetime, and json.
A list of lists (a), where each inner list looks to represent a row of data, is the input for the solution function geometry dash world.
The solution function uses a few mathematical operations utilizing items from each row to compute and report the values of ans_x and ans_y.
The solution function is called after reading input values to fill the list an in the if name =='main': block.