10121012 SUSTech Online Judge
Problem 1012 --Point in rectangle?

1012: Point in rectangle?

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 67  Solved: 41
[Submit][Status][Web Board]

Description

Give a rectangle R (xmin, xmax, ymin, ymax) and a point p (x,y), test whether the point p is in rectangle R or not.

Input

The first line: 4 integers(xmin, xmax, ymin, ymax)

The second line: 2 integers(px, py)

(-100<= xmin, xmax, ymin, ymax, px, py <=100)

Output

"Yes" or "No"

Sample Input

0 5 0 5
1 1

Sample Output

Yes

HINT

Source

[Submit][Status]