• + 0 comments

    For Python3 Platform

    I wrote the code from scratch just to get more practice

    def findPoint(px, py, qx, qy):
        return [2*qx-px, 2*qy-py]
    
    n = int(input())
    for i in range(n):
        px, py, qx, qy = map(int, input().split())
        
        result = findPoint(px, py, qx, qy)
        
        print(*result)