Solution

A point is internal for a given polygon, if the following four conditions are applied at the same time:

  • The point is placed to the right from the left side of the rectangle.
  • The point is placed to the left from the right side of the rectangle.
  • The point is placed downwards from the upper side of the rectangle.
  • The point is placed upwards from the down side of the rectangle.

Testing in the Judge System

Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/508#2.

results matching ""

    No results matching ""