Problems
10110 - Square
SUBMIT PROBLEM

Square

Time Limit: 1 sec

 

The Problem

There is a simple task for you.

 

Given coordinates of four points in a plane, you have to find whether the four points form a square or not.

 

The Input

There are several lines of input. Each line contains 8 Integer (0<=x1,y1,x2,y2,x3,y3,x4,y4<100)

denoting the coordinates of four points. Input is terminated by EOF.

 

The Output

For each line of input you have to print “Yes” if the four points form a square otherwise “No” in a separate line.

 

Sample Input

20 10 10 20 20 20 10 10

20 15 10 11 20 19 10 1

 

Sample Output

Yes

No 

 

 

 

[School & College Level]

Inter School & College Programming Contest (ISCPC) 2017

Problem Setter: Parag Paul