Quadrilateral - 2
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Four points are given on the plane. Do they form a square?
Input
Four lines, each of them contain two numbers - the coordinates of given points. The input data are integers and do not exceed 1000 by the absolute value.
Output
If the given points are vertices of a square print "YES", otherwise print "NO".
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 18%