Submission #4116791


Source Code Expand

x1,y1,x2,y2=map(int,input().split())
a=abs(x1-x2)
b=abs(y1-y2)
if(y1<=y2):
  if(x1<=x2):
    print(x2-b,y2+a,x1-b,y1+a)
    #print('a')
  else:
    print(x2-b,y2-a,x1-b,y1-a)
    #print('b')
else:
  if(x1<=x2):
    print(x2+b,y2+a,x1+b,y1+a)
    #print('c')
  else:
    print(x2+b,y2-a,x1+b,y1-a)
    #print('d')

Submission Info

Submission Time
Task B - Ruined Square
User tayutaedomoshizu
Language Python (3.4.3)
Score 200
Code Size 328 Byte
Status AC
Exec Time 18 ms
Memory 3064 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 11
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt AC 18 ms 3060 KiB
02.txt AC 18 ms 3060 KiB
03.txt AC 18 ms 3060 KiB
04.txt AC 18 ms 3060 KiB
05.txt AC 18 ms 3064 KiB
06.txt AC 18 ms 3060 KiB
07.txt AC 18 ms 3060 KiB
08.txt AC 18 ms 3064 KiB
s1.txt AC 18 ms 3060 KiB
s2.txt AC 18 ms 3060 KiB
s3.txt AC 18 ms 3060 KiB