Skip to content
bradendubois edited this page Oct 7, 2021 · 8 revisions

Sibice

ID: sibice

Difficulty: 1.4

CPU Time: 1 second

Memory: 1024 MB

Solution

The problem describes dimensions W and H, which are actually width and length, which can be a bit confusing. Since some basic trig shows that the hypotenuse of the box will be bigger than either dimension, one calculates that, and if a match is <= that, it fits.

Clone this wiki locally