Author Topic: help c++  (Read 7782 times)

Voller

  • Guest
help c++
« on: September 28, 2021, 08:18:26 pm »
In a rectangular room W on H there is a rectangular table whose sides are
parallel to the sides of the room. The lower-left corner of the table is at the point
(x1, y1), and the upper-right corner is at the point (x2, y2). You want to put
another rectangular table with a width w and a height h in this room so that the side
corresponding to the width of the table is parallel to the side of the room
corresponding to its width. (tables can touch each other, but they cannot
have a common area).
What is the minimum distance to move the first table so
that a second table can be placed in the room? Turn the tables - forbidden. The calculations use the Cartesian (from Rene Descartes) system
coordinates.
« Last Edit: September 28, 2021, 11:47:00 pm by Voller »

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: help c++
« Reply #1 on: September 29, 2021, 01:55:26 am »

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: help c++
« Reply #2 on: September 29, 2021, 02:54:37 am »
Don't feed the bots!