Problem:


Score : 200 points

Problem Statement

There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order.
(Assume that the positive x-axis points right, and the positive y-axis points up.)

Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4).

Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values.

Constraints

|x_1|,|y_1|,|x_2|,|y_2| \leq 100

(x_1,y_1) ≠ (x_2,y_2)

All values in input are integers.

Input

Input is given from Standard Input in the following format:

x_1 y_1 x_2 y_2

Output

Print x_3,y_3,x_4 and y_4 as integers, in this order.

Sample Input 1

0 0 0 1

Sample Output 1

-1 1 -1 0

(0,0),(0,1),(-1,1),(-1,0) is the four vertices of a square in counter-clockwise order.
Note that (x_3,y_3)=(1,1),(x_4,y_4)=(1,0) is not accepted, as the vertices are in clockwise order.

Sample Input 2

2 3 6 6

Sample Output 2

3 10 -1 7

Sample Input 3

31 -41 -59 26

Sample Output 3

-126 -64 -36 -131



Sample input:
0 0 0 1


Sample output:
-1 1 -1 0

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split()))
L = len(A)
ans = [0, 0, 0, 0]
dx = A[2] - A[0]
dy = A[3] - A[1]
if(dx>0 and dy>0):
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] - dy
    y3 = A[3] + dx
    x4 = x3 - dx
    y4 = y3 - dy
elif(dx>0 and dy<0):
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] - dy
    y3 = A[3] - dx
    x4 = x3 - dx
    y4 = y3 + dy
elif(dx<0 and dy>0):
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] + dy
    y3 = A[3] + dx
    x4 = x3 + dx
    y4 = y3 - dy
else:
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] + dy
    y3 = A[3] - dx
    x4 = x3 + dx
    y4 = y3 + dy

ans[0] = str(x3)
ans[1] = str(y3)
ans[2] = str(x4)
ans[3] = str(y4)
ans = ' '.join(ans)
print(ans)

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split()))
L = len(A)
ans = [0, 0, 0, 0]
dx = A[2] - A[0]
dy = A[3] - A[1]
if(dx>0 and dy>0):
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] - dy
    y3 = A[3] + dx
    x4 = x3 - dx
    y4 = y3 - dy
elif(dx>0 and dy<0):
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] - dy
    y3 = A[3] - dx
    x4 = x3 - dx
    y4 = y3 + dy
elif(dx<0 and dy>0):
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] + dy
    y3 = A[3] + dx
    x4 = x3 + dx
    y4 = y3 - dy
else:
    dx = abs(dx)
    dy = abs(dy)
    x3 = A[2] + dy
    y3 = A[3] - dx
    x4 = x3 + dx
    y4 = y3 + dy

ans[0] = x3
ans[1] = y3
ans[2] = x4
ans[3] = y4
print(ans)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

if x1 <= x2:
    if y1 < y2:
        print(x2 - (y2 - y1), y2 + (x2 - x1), x1 - (y2 - y1), y1 + (x2 - x1))
    else:
        print(x2 + (y1 - y2), y2 + (x2 - x1), x1 + (y1 - y2), y1 + (x2 - x1))
else:
    if y1 < y2:
        print(x2 - (y2 - y1), y2 - (x1 - x2), x1 - (y2 - y1), y1 - (x1 - x2))
    else:
        print(x2 + (y1 - y2), y2 - (y1 - y2), x1 + (y1 - y2), y1 - (x1 - x2))

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
x3=x2-(y2-y1)
y3=y2-(x2-x1)
x4=x1+(y1-y2)
y4=y1+(x1-x2)
lst=[x3,y3,x4,y4]
print(*lst)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
x3=x2-(y2-y1)
y3=y2-(x2-x1)
x4=x3-(y1-y2)
y4=y3-(x1-x2)
lst=[x3,y3,x4,y4]
print(*lst)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
x3=x2-(y2-y1)
y3=y2-(x2-x1)
x4=x3-(y3-y2)
y4=y3-(x3-x2)
lst=[x3,y3,x4,y4]
print(*lst)

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
x=(c-a)
y=(d-b)
e=(c-x)
f=(d+y)

print(e,f,(e-x),(f-y))

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
x=(c-a)
y=(d-b)
e=(c-x)
f=(d-y)

print(e,f,(e-x),(f-y))

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

dif_x = x2 - x1
dif_y = y2 - y1

print(x2 - dif_y, y2 + dif_x, -x2 + dif_x + dif_y, -y2 + dif_x + dif_y)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

inc_x = x2 - x1
inc_y = y2 - y1
l = max(abs(inc_x), abs(inc_y))

if x1 == x2:
    print(x2 - l, y2, x1 - l, y1)
elif y1 == y2:
    print(x2, y2 - l, x1, y1 - l)
else:
    print(x2 - inc_y, y2 + inc_x, x1 - inc_y, y1 + inc_x)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

inc_x = x2 - x1
inc_y = y2 - y1
l = max(inc_x, inc_y)

if x1 == x2 or y1 == y2:
    print(x2 - l, y2, x1 - l, y1)
else:
    print(x2 - inc_y, y2 + inc_x, x1 - inc_y, y1 + inc_x)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int, input().split())
#print(x1,y1,x2,y2)
X = x2 - x1
Y = y2 - y1
print(x2-Y,y2-X,x2-Y-X,y2-X-Y)

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
print(c+(d-b),d-(c-a),c+d-b-c+a,d-c+a-d+b)

Submission status: Wrong Answer

Solution code:
xyList = list(map(int,input().split()))
print(xyList)
x = xyList[2]-xyList[0]
y = xyList[3]-xyList[1]
print(xyList[2]-y,xyList[3]+x,xyList[0]-y,xyList[1]+x)

Submission status: Wrong Answer

Solution code:
#coding:utf-8
x1, y1, x2, y2 = map(int, input().split())

x = x2 - x1
y = y2 - y1

print(x2 - y, y2 + x, x1 -y, x2 + x)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
x_slide = abs(x2 - x1)
y_slide = abs(y2 - y1)

if x2 >= x1 and y2 >= y1:
    print(x2 - y_slide, y2 + x_slide, x1 - y_slide, y1 + x_slide)
elif x2 < x1 and y2 > y1:
    print(x2 - y_slide, y2 - x_slide, x1 - y_slide, y1 - x_slide)
elif x2 < x1 and y1 < y2:
    print(x2 + y_slide, y2 - x_slide, x1 + y_slide, y2 - x_slide)
else:
    print(x2 + y_slide, y2 + x_slide, x1 + y_slide, x2 + y_slide)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
x_slide = abs(x2 - x1)
y_slide = abs(y2 - y1)

if x2 >= x1 and y2 >= y1:
    print(x2 - y_slide, y2 + x_slide, x1 - y_slide, y1 + x_slide)
elif x2 <= x1 and y2 >= y1:
    print(x2 - y_slide, y2 - x_slide, x1 - y_slide, y1 - x_slide)
elif x2 <= x1 and y1 <= y2:
    print(x2 + y_slide, y2 - x_slide, x1 + y_slide, y2 - x_slide)
else:
    print(x2 + y_slide, y2 + x_slide, x1 + y_slide, x2 + y_slide)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

def point_point_dist(xy1, xy2):
  x1, y1 = xy1
  x2, y2 = xy2
  return ((x2 - x1)**2 + (y2 - y1)**2)**0.5

d12 = point_point_dist((x1, y1), (x2, y2))

candidate = []
for x3 in range(-200, 201):
  if x3 == x1 or x3 == x2:
    continue
  for y3 in range(-200, 201):
    if y3 == x1 or y3 == x2:
      continue
    if point_point_dist((x2, y2), (x3, y3)) == d12:
      candidate.append((x3, y3))
#print(candidate)

for xy3 in candidate:
  x3, y3 = xy3
  for x4 in range(-200, 201):
    for y4 in range(-200, 201):
      if point_point_dist((x4, y4), (x3, y3)) == point_point_dist((x4, y4), (x1, y1)) == d12:
        if point_point_dist((x1, y1), (x3, y3)) == point_point_dist((x2, y2), (x4, y4)):
          print(x3, y3, x4, y4)
          exit()

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
X = x2 - x1
Y = y2 - y1

if x2 > x1 or y2 > y1:
  x3, y3 = x2 - Y, y2 + X
  x4, y4 = x3 - X, y3 - Y

else:
  x3, y3 = x2 + Y, y2 - X
  x4, y4 = x3 + X, y3 + Y

print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = list(map(int,input().split()))
xdis = x2-x1
ydis = y2-y1
print(x2-ydis,y2+xdis,x1-xdis,y1+ydis)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = list(map(int,input().split()))
if x1 == x2 and y1 > y2:
    dis = y1-y2
    x3 = x2+dis
    y3 = y2
    x4 = x2+dis
    y4 = y1
    print(x3,y3,x4,y4)
elif x1 == x2 and y1 < y2:
    dis = y2-y1
    x3 = x2-dis
    y3 = y2
    x4 = x1-dis
    y4 = y1
    print(x3,y3,x4,y4)
elif y1 == y2 and x1 < x2:
    dis = x2-x1
    x3 = x2
    y3 = y2+dis
    x4 = x1
    y4 = y2+dis
    print(x3,y3,x4,y4)
else:
    dis = x1-x2
    x3 = x2
    y3 = y2-dis
    x4 = x1
    y4 = y2-dis
    print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
X = abs(x1 - x2)
Y = abs(y1 - y2)

if x1 < x2 or y1 < y2:
  x3, y3 = x2 - Y, y2 + X
  x4, y4 = x3 - X, y3 - Y
else:
  x3, y3 = x2 + Y, y2 - X
  x4, y4 = x3 + X, y3 + Y

print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
dx = x2-x1; dy = y2-y1
print(x2-dy, y2+dx, x1-dy, x2+dx)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

if x1 >= x2 and y1 >= y2:
    x3 = x2 - (y1 - y2)
    y3 = y2 + (x1 - x2)
    x4 = x3 - (x1 - x2)
    y4 = y3 - (y1 - y2)
elif x1 >= x2 and y1 < y2:
    x3 = x2 - (y2 - y1)
    y3 = y2 - (x1 - x2)
    x4 = x3 + (x1 - x2)
    y4 = y3 - (y2 - y1)
elif x1 < x2 and y1 >= y2:
    x3 = x2 + (y1 - y2)
    y3 = y2 + (x2 - x1)
    x4 = x3 - (x2 - x1)
    y4 = y3 + (y1 - y2)
else:
    x3 = x2 - (y2 - y1)
    y3 = y2 + (x2 - x1)
    x4 = x3 - (x2 - x1)
    y4 = y3 - (y2 - y1)

print("{} {} {} {}".format(x3, y3, x4, y4))

Submission status: Wrong Answer

Solution code:
x1,x2,y1,y2=map(int,input().split())
x3=x2+y1-y2
y3=-x1+x2+y2
x4=x1-y2+y1
y4=y1-x1+x2

print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
x1, y1, x2, y2 = [int(x) for x in input().split()]
if x1 == x2:
    l = y2 - y1
    x3 = x2 - l
    y3 = y2
    x4 = x1 - l
    y4 = y1
    print(* [x3, y3, x4, y4])
else:
    l = x1 - x2
    x3 = x2
    y3 = y2 - l
    x4 = x1
    y4 = y1 - l
    print(* [x3, y3, x4, y4])

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))
x1=a[0]
y1=a[1]
x2=a[2]
y2=a[3]
x=x2-x1
y=y2-y1
print(str(x2-y)+' '+str(x1-y)+' '+str(x1-y)+' '+str(y1+x))

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
if y1 == y2:
    print(min(x1, x2), y1 - abs(x1 - x2), max(x1, x2), y1 - abs(x1 - x2))
else:
    print(x1 - abs(y1 - y2), max(y1, y2), x1 - abs(y1 - y2), min(y1, y2))

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int, input().split())

if A == C:
    if B < D:
        print(C-(D-B), D, A-(D-B), B)
    else:
        print(C+(B-D), D, A+(B-D), B)
elif A < C:
    if B == D:
        print(C, D+(C-A), A, B+(C-A))
else:
    if B == D:
        print(C, D-(A-C), A, B-(A-C))

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
x = x2 - x1
y = y2 - y1
x3 = x2-y
y3 = y2+x
x4 = x1-y
y4 = y1+x
print(x, y)
print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
k = abs(y2-y1)
m = x2-x1
print(x2-k,y2+m,x1-k,y1+m)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
k = abs(y2-y1)
m = x2-x1
print(k,m)
print(x2-k,y2-m,x1-k,y1-m)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
k = abs(y2-y1)
m = abs(x2-x1)
print(x2-k,y2-m,x1-k,y1-m)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
k = abs(abs(y2)-abs(y1))
m = abs(abs(x2)-abs(x1))
print(x2-k,y2+m,x1-k,y1+m)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
k = abs(y2)+abs(y1)
m = abs(x2)+abs(x1)
print(x2-k,y2+m,x1-k,y1+m)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
k = abs(y2-y1)
m = abs(x2-x1)
print(x2-k,y2+m,x1-k,y1+m)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int,input().split())

a, b = x2 - x1, y2 - y1
x3, y3 = x2 - a, y2 - b
x4, y4 = x1 - b, y1 - a

print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int,input().split())

a, b = x2 - x1, y2 - y1
x3, y3 = x2 - a, y2 - b
x4, y4 = x1 - b, y1 - a

print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]

X_1,Y_1,X_2,Y_2 = map(int,input().split(' '))
X_3 = Y_2+(Y_2-Y_1)
Y_3 = X_2+(X_2-X_1)
X_4 = X_3+(X_2-X_1)
Y_4 = Y_3+(Y_2-Y_1)
print(X_3,Y_3,X_4,Y_4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int,input().split())
deltax = x2 - x1
deltay = y2 - y1
x3 = x2 - deltay
y3 = y2 + deltax
x4 = x1 - deltay
y4 = y1 + deltax
print(x3, y3, x2, y2)

Submission status: Wrong Answer

Solution code:
from sys import stdin
import numpy as np
import math
from itertools import accumulate

x1,y1,x2,y2 = [int(x) for x in stdin.readline().rstrip().split()]

a = abs(x2-x1)
b = abs(y2-y1)

if x2-x1 >= 0 and y2-y1 >= 0:
    print(x2-b,y2+a,x1-b,y1+a)
elif x2-x1 >= 0 and y2-y1 < 0:
    print(x2+b,y2+a,x1+b,y1+a)
elif x2-x1 < 0 and y2-y1 >= 0:
    print(x2-b,y2-a,x1-b,y1-a)
else:
    print(x2+b,y2-a,x1+b,y1+a)

Submission status: Wrong Answer

Solution code:
from sys import stdin
import numpy as np
import math
from itertools import accumulate

x1,y1,x2,y2 = [int(x) for x in stdin.readline().rstrip().split()]

a = abs(x2-x1)
b = abs(y2-y1)

if x2-x1 >= 0 and y2-y1 >= 0:
    print(x2-b,y2+a,x1-b,y1+a)
elif x2-x1 >= 0 and y2-y1 < 0:
    print(x2+b,y2+a,x1+b,y1+a)
elif x2-x1 < 0 and y2-y1 >= 0:
    print(x2-b,y2-a,x1-b,y1-a)
else:
    print(x2-b,y2+a,x1+b,y1+a)

Submission status: Wrong Answer

Solution code:
from sys import stdin
import numpy as np
import math
from itertools import accumulate

x1,y1,x2,y2 = [int(x) for x in stdin.readline().rstrip().split()]

a = abs(x2-x1)
b = abs(y2-y1)

if x2-x1 >= 0 and y2-y1 >= 0:
    print(x2-b,y2+a,x1-b,y1+a)
elif x2-x1 >= 0 and y2-y1 < 0:
    print(x2-b,y2-a,x1-b,y1-a)
elif x2-x1 < 0 and y2-y1 >= 0:
    print(x2-b,y2-a,x1-b,y1-a)
else:
    print(x2-b,y2+a,x1+b,y1+a)

Submission status: Wrong Answer

Solution code:
x1,x2,y1,y2 = map(int, input().split())
x3 = x2 - (y2-y1)
y3 = y2 + (x2-x1)
x4 = x1 - (y2-y1)
y4 = y1 + (x2-x1)
print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
if x1 == x2:
  print(x2+(y1-y2), y2, x1+(y1-y2), y1)
else:
  print(x2, y2-(x1-x2), x1, y1-(x1-x2))

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
dx = x2 - x1
dy = y2 - y1
print(x2-dy*(dx==0),y2-dy*(dy==0),x2-dy,y2-dy)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
x=x2-x1
y=y2-y1
print(x2-y, y2+x, x1-y1, y1+x)

Submission status: Wrong Answer

Solution code:
x1 , y1, x2, y2 = map(int, input().split())

x3 = x2 - ( y2 - y1)
y3 = y2
x4 = x3
y4 = y1

print(x3, y3, x4, y4, sep = " ")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split(' '))
if a == c and b < d:
    L = abs(b-d)
    result = [c-L, d, a-L, b]
elif a== c and d < b:
    L = abs(b-d)
    result = [c+L, d, a+L, b]
elif b == d and a < c:
    L = abs(a-c)
    result = [b, d+L, a, c+L]
else:
    L = abs(a-c)
    result = [b, d-L, a, c-L]
print(' '.join(map(str, result)))

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

def main():
    x1, y1, x2, y2 = map(int, input().split())
    a = abs(x1 - x2)
    b = abs(y1 - y2)
    if x1 <= x2 and y1 <= y2:
        x3 = x2 - b
        y3 = y2 + a
        x4 = x3 - a
        y4 = y3 - b
    elif x1 > x2 and y1 < y2:
        x3 = x2 - b
        y3 = y2 - a
        x4 = x3 + a
        y4 = y3 - b
    else:
        x3 = x2 + b
        y3 = y2 - a
        x4 = x3 + a
        y4 = y3 + b

    print(x3, y3, x4, y4)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a==c and d-b>0:
    l=d-b
    print(c-l,d,c-l,b,end=" ")
elif a==c and d-b<0:
    l=b-d
    print(c+l,d,c+l,b,end=" ")
elif b==d and a-c>0:
    l=a-c
    print(c,d-l,a,d-l,end=" ")
elif b==d and c-a>0:
    l=c-a
    print(c,d+l,a,d+l,end=" ")

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    x1, y1, x2, y2 = map(int, input().split())
    x, y = x2 - x1, y2 - y1
    print(x2 - y, y2 + x, x1 + y, y1 - x)
    # print(" ".join([x1 - x, y1, x2, y2]))


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    x1, y1, x2, y2 = map(int, input().split())
    x, y = x2 - x1, y2 - y1
    print(x2 - y, y2 + x, x1 + y, y2 - x)
    # print(" ".join([x1 - x, y1, x2, y2]))


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    x1, y1, x2, y2 = map(int, input().split())
    x, y = x2 - x1, y2 - y1
    print(x2 - y, y2 + x, x1 - y, y2 - x)
    # print(" ".join([x1 - x, y1, x2, y2]))


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
if x1<=x2 and y1>=y2:
    print(x2+y2-y1, y2+x2-x1, x1+y2-y1, y1+x2-x1)
elif x1<=x2 and y1<=y2:
    print(x2-y2+y1, y2+x2-x1, x1-y2+y1, y1+x2-x1)
elif x1>=x2 and y1>=y2:
    print(x2+y2-y1, y2-x1+x2, x1+y2+y1, y1-x1+x2)
else:
    print(x2-y2+y1, y2-x1+x2, x1-y2+y1, y1-x1+x2)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
if y1 < y2:
    y3 = y2
    x3 = x1 - (y2-y1)
    y4 = y1
    x4 = x3
elif y1 > y2:
    y3 = y2
    x3 = x1 + (y2-y1)
    y4 = y1
    x4 = x3
elif x1 < x2:
    x3 = x2
    y3 = y2 + (x2-x1)
    x4 = x1
    y4 = y3
else:
    x3 = x2
    y3 = y2 - (x2-x1)
    x4 = x1
    y4 = y3
print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
print(x1+(x2-x1)-abs(y1-y2),y2-(x1-x2),x1-abs(y1-y2),y1+(x2-x1))

Submission status: Wrong Answer

Solution code:
x_1,y_1,x_2,y_2 = map(int, input().split())

print(x_2,y_2 + abs(x_2 - x_1), x_1, y_2 + abs(x_2 - x_1), end=' ')

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
print(x2-y2+y1, end='')
print(y2+x2-x1, end='')
print(x2-y2+y1-x2+x1, end='')
print(y2+x2-x1-y2+y1, end='')

Submission status: Wrong Answer

Solution code:
import math

x1,y1,x2,y2=map(int, input().split())

#line = math.sqrt(pow(x2-x1,2)+pow(y2-y1,2))

buf1=x2-x1
buf2=y2-y1

print(buf1,buf2)

print(x2-buf2,y2+buf1,x1-buf2,y1+buf1)

Submission status: Wrong Answer

Solution code:
s=list(
  map(
    int, input().split())
  )
x1=s[0]
y1=s[1]
x2=s[2]
y2=s[3]
x3=x2+y1-y2
y3=y2+x1-x2
x4=x1+y1-y2
y4=y1+x1-x2
print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
if x1 == x2:
    if y1 < y2:
        d = y2 - y1
        print("{} {} {} {}".format(
            x1 - d,
            y2,
            x1 - d,
            y1))
    else:
        d = y1 - y2
        print("{} {} {} {}".format(
            x1 + d,
            y2,
            x1 + d,
            y1))
elif y1 == y2:
    if x1 < x2:
        d = x2 - x1
        print("{} {} {} {}".format(
            x2,
            y2 + d,
            x1,
            y1 + d))
    else:
        d = x1 - x2
        print("{} {} {} {}".format(
            x2,
            y2 - d,
            x1,
            y1 - d))

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1
print(x2 - dy, y2 + dx, x1 - dy, x2 + dx)

Submission status: Wrong Answer

Solution code:
def main():
    x1, y1, x2, y2 = map(int, input().split())

    if x1 != x2:
        x3 = x2
        x4 = x1
        d = abs(x1 - x2)
        if x1 > x2:
            y3 = y1 - d
        else:
            y3 = y1 + d
        y4 = y3
    else:
        y3 = y2
        y4 = y1
        d = abs(y1 - y2)
        if y1 > y2:
            x3 = x1 + d
        else:
            x3 = x1 - d
        x4 = x3

    print(x3, y3, x4, y4)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())

x=x2-x1
y=y2-y1
print(x2-y,y2-x,x1-y,y1-x)

Submission status: Wrong Answer

Solution code:
A = [int(x) for x in input().split()]
a=A[2]-A[0]
b=A[3]-A[1]
print(A[2]-b,A[3]+a,A[0]-b,A[0]+a)

Submission status: Wrong Answer

Solution code:
A = [int(x) for x in input().split()]
a=A[2]-A[0]
b=A[3]-A[1]

if a>0:
	if a*b >0:
		print(A[2] - abs(b), A[3] + abs(a), A[0] - abs(b), A[1] + abs(a))
	else:
		print(A[2] + abs(b), A[3] + abs(a), A[0] + abs(b), A[1] + abs(a))
else:
	if a*b >0:
		print(A[2] + abs(b), A[3] - abs(a), A[0] + abs(b), A[1] - abs(a))
	else:
		print(A[2] - abs(b), A[3] - abs(a), A[0] - abs(b), A[1] - abs(a))

Submission status: Wrong Answer

Solution code:
def test():
    x1,y1,x2,y2 = map(int,input().split())
    x = abs(x2-x1)
    y = abs(y2-y1)
    print(x2-y,y2+x,x1-y,y1+x)


if __name__ == "__main__":
    test()

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
print(x2+y2-y1, y2+x2-x1, x1+y1-y2, y1-x1+x2)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
print(x2+y2-y1, y2+x2-x1, x1+y1-y2, y1+x1-x2)

Submission status: Wrong Answer

Solution code:
n = list(map(int,input().split()))

p1 = (int(n[0]) + int(n[1]) * 1j)
p2 = (int(n[2]) + int(n[3]) * 1j)

p3 = (p2 - p1) * 1j + p2
p4 = p3 + (p1 - p2)

print(p3.real, p3.imag, p4.real, p4.imag)

Submission status: Wrong Answer

Solution code:
n = list(map(int,input().split()))

p1 = (int(n[0]) + int(n[1]) * 1j)
p2 = (int(n[2]) + int(n[3]) * 1j)

p3 = (p1 - p2) * 1j + p2
p4 = p3 + (p1 - p2)

print(p3.real, p3.imag, p4.real, p4.imag)

Submission status: Wrong Answer

Solution code:
# -*-coding: utf-8 -*-
a, b, c, d = map(int, input().split())
# (x1, y1)を原点に移動させる
c -= a
d -= b
if c > 0 and d >= 0:     # 第一象限
    e = c - d
    f = c + d
    g = -abs(d)
    h = abs(c)
elif c <= 0 and d > 0:       # 第二象限
    e = c - abs(d)
    f = d - abs(c)
    g = -abs(d)
    h = -abs(c)
elif c < 0 and d <= 0:       # 第三象限
    e = c + abs(d)
    f = d - abs(c)
    g = abs(d)
    h = abs(c)
else:       # 第四象限
    e = c + abs(d)
    f = d + abs(c)
    g = abs(d)
    h = abs(c)

print("{} {} {} {}".format(e+a , f+b , g+a ,h+b))

Submission status: Wrong Answer

Solution code:
# -*-coding: utf-8 -*-
a, b, c, d = map(int, input().split())
# (x1, y1)を原点に移動させる
c -= a
d -= b
if c > 0 and d >= 0:     # 第一象限
    e = c - d
    f = c + d
    g = -abs(d)
    h = abs(c)
elif c <= 0 and d > 0:       # 第二象限
    e = c - abs(d)
    f = d - abs(c)
    g = -abs(d)
    h = -abs(c)
elif c < 0 and d <= 0:       # 第三象限
    e = c + abs(d)
    f = c - abs(d)
    g = abs(d)
    h = abs(c)
else:       # 第四象限
    e = c + abs(d)
    f = d + abs(c)
    g = abs(d)
    h = abs(c)

print("{} {} {} {}".format(e+a , f+b , g+a ,h+b))

Submission status: Wrong Answer

Solution code:
# -*-coding: utf-8 -*-
a, b, c, d = map(int, input().split())
# (x1, y1)を原点に移動させる
c -= a
d -= b
if c > 0 and d >= 0:     # 第一象限
    e = c - d
    f = c + d
    g = -abs(d)
    h = abs(c)
elif c <= 0 and d > 0:       # 第二象限
    e = - c - abs(d)
    f = d - abs(c)
    g = -abs(d)
    h = -abs(c)
elif c < 0 and d <= 0:       # 第三象限
    e = c + abs(d)
    f = c - abs(d)
    g = abs(d)
    h = abs(c)
else:       # 第四象限
    e = c + abs(d)
    f = d + abs(c)
    g = abs(d)
    h = abs(c)

print("{} {} {} {}".format(e+a , f+b , g+a ,h+b))

Submission status: Wrong Answer

Solution code:
l = list(map(int,input().split()))
if l[0] == l[2]:
  x3 = l[2] + (l[1] - l[3])
  x4 = x3
  y3 = l[3]
  y4 = l[1]
else:
  y3 = l[3] + (l[2] - l[0])
  y4 = y3
  x3 = l[2]
  x4 = l[0]
m = [x3,y3,x4,y4]
n = map(str,m)
print(' '.join(n))

Submission status: Wrong Answer

Solution code:
x1 , y1, x2, y2 = map(int,input().split())
x = x1-x2
y = y1-y2

if (x==0):
  x3 = x1 + y
  y3 = y2
  x4 = x3
  y4 = y3 + y
else:
  x3 = x1
  y3 = y2 + x
  x4 = x3 + x
  y4 = y3
  
print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())

dx = abs(c - a)
dy = abs(b - d)

if c >= a and d > b:
  e = c - dy
  f = d + dx
  g = e - dx
  h = f - dy
  print(e, f, g, h)
elif c < a and d >= b:
  e = c - dx
  f = d - dy
  g = e + dy
  h = f - dx
  print(e, f, g, h)
elif d < b and c <= a:
  e = c + dy
  f = d - dx
  g = e + dx
  h = f + dy
  print(e, f, g, h)
else:
  e = c + dy
  f = d + dx
  g = e - dx
  h = f + dy
  print(e, f, g, h)

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())

dx = abs(c - a)
dy = abs(b - d)

if c >= a and d > b:
  e = c - dy
  f = d + dx
  g = e - dx
  h = f - dy
  print(e, f, g, h)
elif c < a and b >= d:
  e = c - dx
  f = d - dy
  g = e + dy
  h = f - dx
  print(e, f, g, h)
elif d < b and c <= a:
  e = c + dy
  f = d - dx
  g = e + dx
  h = f + dy
  print(e, f, g, h)
else:
  e = c + dy
  f = d + dx
  g = e - dx
  h = f + dy
  print(e, f, g, h)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int, input().split())

if y1 == y2:
    L = abs(x1-x2)
    if x1 > x2:
        print(x2, y1-L, x1, y1-L)
    else:
        print(x2, y1+L, x1, y1+L)
else:
    L = abs(y1-y2)
    if y1 > y2:
        print(x2+L, y2, x2+L, y1)
    else:
        print(x1-L, y2, x2-L, y1)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = list(map(int, input().split()))
d = y1 - y2
print(x2 + d, y2, x2 + d, y1)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
h=x1-x2
v=y1-y2
print(str(x2-v)+" "+str(y2+h)+" "+str(x1-v)+" "+str(y1+h))

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
h=abs(x1-x2)
v=abs(y1-y2)
print(str(x2-v)+" "+str(y2+h)+" "+str(x1-v)+" "+str(y1+h))

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

dx, dy = x2 - x1, y2- y1

for i in range(2):
    dx, dy = -dy, dx
    x2 += dx
    y2 += dy
    if i == 0:
        print(x2, y2, end='')
    else:
        print(x2, y2)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

dx, dy = x2 - x1, y2- y1

for i in range(2):
    dx, dy = -dy, dx
    x2 += dx
    y2 += dy
    print(x2, y2, end='')

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int,input().split())
dx, dy = x2-x1, y2-y1

x3, y3 = x1 + dx - dy, y1 + dy - dx
x4, y4 = x1 - dy, y1 + dx

print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
x3=x2-y2-y1
y3=y2+x2-x1
x4=x1-y2-y1
y4=y1+x2-x1
print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
import math
x = x2 - x1
y = y2 - y1
theta3 = math.pi/4
x3 = int(math.sqrt(2) * (x*math.cos(theta3) - y*math.sin(theta3)))
y3 = int(math.sqrt(2) * (x*math.sin(theta3) + y*math.cos(theta3)))
theta4 = math.pi/2
x4 = int(x*math.cos(theta4) - y*math.sin(theta4))
y4 = int(x*math.sin(theta4) + y*math.cos(theta4))

print(x3+x1,y3+y1,x4+x1,y4+y1)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

x3 = x2 + (y1 - y2)
y3 = y2 - (x1 - x2)
x4 = x3 + (x1 - x2)
y4 = y3 - (y1 - y2)

print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
l=[0]*4
l[0]=c+b-d
l[1]=d-(a-c)
l[2]=l[0]+a-c
l[3]=l[1]-(b-d) 
for i in range(3):
    print(l[i],end=' ')
print(l[3])

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

if x1 > x2 and y1 == y2:
    Z = abs(x1-x2)
    x3 = x2
    y3 = y2-Z
    x4 = x1
    y4 = y3
    
elif x2 > x1 and y1 == y2:
    Z = abs(x2-x1)
    x3 = x2
    y3 = y2 + Z
    x4 = x1
    y4 = y3
elif y1 < y2 and x1 == x2:
    Z = abs(y1-y2)
    x3 = x2 - Z
    y3 = y2
    x4 = x3
    y4 = y1
else :
    Z= abs(y2-y1)
    x3 = x1 + Z
    y3 = y2
    x4 = x3
    y4 = y1





print('{} {} {} {}'.format(x3,y3,x4,y4))

Submission status: Wrong Answer

Solution code:
x0, y0, x1, y1 = [int(x) for x in input().split()]
dx = x1 - x0
dy = y1 - y0
print(x1 + dy, y1 - dx)
print(x0 + dy, y0 - dx)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int,input().split())

sax = x2 -x1
say = y2- y1

if x1 < x2:
    x3 = x2 - say
    x4 = x3 - sax
else:
    x3 = x2 - say
    x4 = x3 - sax

if y1 < y2:
    y3 = y2 + sax
    y4 = y3 - say
else:
    y3 = y2 - sax
    y4 = y3 + say
print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
if (y2-y1) >=0 and (x2-x1) >=0:
    print(1)
    x3 = x2 - abs(y2-y1)
    y3 = y2 + abs(x2-x1)
elif (y2-y1) >=0 and (x2-x1) <0:
    print(2)
    x3 = x2 - abs(y2-y1)
    y3 = y2 - abs(x2-x1)
elif (y2-y1) <0 and (x2-x1) >=0:
    print(3)
    x3 = x2 + abs(y2-y1)
    y3 = y2 + abs(x2-x1)
else:
    print(4)
    x3 = x2 + abs(y2-y1)
    y3 = y2 - abs(x2-x1)
x4 = x3 - (x2-x1)
y4 = y3 - (y2-y1)
print(x3, y3, x4, y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

if x1 == x2:
    d = abs(y1 - y2)
    if y1 < y2:
        print(x1-d, y2, x1-d, y1)
    else:
        print(x1+d, y2, x1+d, y1)
else:
    d = abs(x1 - x2)
    if x1 < x2:
        print(x2, y1 + d, x1, y1 + d)
    else:
        print(x2, y1 - d, x1, y1 - d)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())

def vector(x1, y1, x2, y2):
    return [x2 - (y2 - y1), y2 + (x2 - x1)]

ans = vector(x1, y1, x2, y2)
ans += vector(x2, y2, ans[0], ans[1])

print(ans)

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
print(c+b-d,d+b-a,a+b-d,b+c-a)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2 = map(int,input().split())
a = y2-y1
x3 = x4 = x1-a
y3 = y2
y4 = y1
print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
import sys
x1,y1,x2,y2 = list(map(int, input().split()))

x3 = x2 - (y1 - y2)
y3 = y2 + (x1 - x2)
x4 = x3 - (y2 - y3)
y4 = y3 + (x2 - x3)

print(x3,y3,x4,y4)

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(int, input().split())
x = x1-x2
y = y2-y1
print(x2-y, y2+x , x1-y, y1-x)

Submission status: Wrong Answer

Solution code:
x1,y1,x2,y2=map(int,input().split())
print(x2+y1-y2,y2-x1+x1,x1+y1-y2,y1-x1+x2)

Submission status: Wrong Answer

Solution code:
X1, Y1, X2, Y2 = map(int, input().split())
diff = abs(X1 - X2) or abs(Y1 - Y2)

if X1 != X2:
	X3, X4 = X2, X1
else:
	if Y2 < Y1:
		X3, X4 = X1 + diff, X1 + diff
	else:
		X3, X4 = X1 - diff, X1 - diff

if Y1 != Y2:
	Y3, Y4 = Y2, Y1
else:
	if X1 < X2:
		Y3, Y4 = Y1 + diff, Y1 + diff
	else:
		Y3, Y4 = Y1 - diff, Y1 - diff

print(X3, Y3, X4, Y4)

Submission status: Wrong Answer

Solution code:
#ABC108B
x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1

x3 = x2 - dy
y3 = y2 + dx
 
x4 = x3 - dx
y4 = y3 - dy

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
	
def main():
	X = input().split(" ")
	X = [int(s) for s in X]
	
	dx = abs(X[0] - X[2])
	dy = abs(X[1] - X[3])
	
	ans = "{} {} {} {}".format(X[2]-dy, X[3]+dx, X[0]-dy, X[1]+dx)
	print(ans)
	
if __name__ == "__main__":
	main()

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())

r = abs(b-d)

print(c-r,d,a-r,b)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
#print(i[0])
if i[1] > i[3] :
    idou_w = i[1] - i[3]
else :
    idou_w = i[3] - i[1]
    
if i[0] > i[2] :
    idou_h = i[0] - i[2]
else:
    idou_h = i[2] - i[0]

x3 = int(i[2] - idou_w)
y3 = int(i[3] - idou_h)

x4 = int(i[1] - idou_h)
y4 = int(i[0] - idou_w)

y = [x3,y3,x4,y4]
print(y)