Type: Default 1000ms 256MiB

可爱的正方形

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

平面上的正方形

坐标系_百度百科 (baidu.com)

向量(数学用语)_百度百科 (baidu.com)

题目描述

小北在平面直角坐标系上随手画了一个正方形, 她发现太巧了, 四个顶点的坐标恰好都是整数.

假如说正方形的顶点坐标逆时针依次为(xa,ya),(xb,yb),(xc,yc),(xd,yd)(x_a, y_a), (x_b, y_b), (x_c, y_c), (x_d, y_d), 现在给你(xa,ya),(xb,yb)(x_a, y_a), (x_b, y_b), 请给出(xc,yc),(xd,yd)(x_c, y_c), (x_d, y_d)坐标.

数据格式

输入格式

一行共4个整数表示(xa,ya),(xb,yb)(x_a, y_a), (x_b, y_b)

输出格式

一行共4个整数表示(xc,yc),(xd,yd)(x_c, y_c), (x_d, y_d)

样例

0 0 0 1
-1 1 -1 0
2 3 6 6
3 10 -1 7

数据范围

xa,ya,xb,yb  100 |x_a|,|y_a|,|x_b|,|y_b|\ \leq\ 100

[北辰杯 North-Star-Cup] 考前模拟赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
12
Start at
2024-10-7 14:00
End at
2024-10-17 14:00
Duration
240 hour(s)
Host
Partic.
16