[Solution] Box Fitting Codeforces Round #711

Box Fitting Solution Codeforces You are given nn rectangles, each of height 11. Each rectangle’s width is a power of 22 (i. e. it can be represented as 2x2x for some non-negative integer xx). You are also given a two-dimensional box of width WW. Note that WW may or may not be a power of 22. Moreover, WW is at least as large as the width of the largest rectangle. … Read more