Disjoint rectangles

Using the definitions

    class Point:
        """attributes: x, y"""

    class Rectangle:
        """attributes: width, height, corner"""

write a function

    rectangle_disjoint(r1, r2)

that returns @True@ if a rectangle @r1@ and a rectangle @r2@ are
disjoint (they do not share any point).

Input

The input consists of several pairs of rectangles (four non-negative
integer numbers for each: the width, the height, and the coordinates of
the lower-left corner).

Output

For each pair of rectangles, print whether or not they are disjoint.

Problem information

Author: Gabriel Valiente

Generation: 2026-01-25T15:22:41.040Z

© Jutge.org, 2006–2026.
https://jutge.org
