-->
当前位置:首页 > 题库

PROGRAMMING:The position relationship between the midpoint of a plane and a square

Luz5年前 (2021-05-10)题库346
In the plane rectangular coordinate system, there is a square whose sides are parallel to the coordinate axis. Given the coordinates of the lower left corner of the square ox, oy and the length of the side l, and given the coordinates of a point Px, py, please judge whether the point is inside the square (the case on the edge cannot be regarded as inside).
###Input format:
First, input three positive integers to represent the abscissa and ordinate x, oy and side length L of the lower left corner of the square.
Enter two positive integers to represent the abscissa and ordinate PX and py of a given point.
All data entered should not exceed 100
###Output format:
If the point is inside the square, output yes, otherwise output No
After outputting the answer, you need to output carriage return to wrap the line.
###Input example:
Here is a set of inputs. For example:
```in
1 1 100
5 5
```
###Output example:
The corresponding output is given here. For example:
```out
yes
```






answer:If there is no answer, please comment