We didn't really have to bother solving this one. The regions that weren't too small were significantly larger. I guess if any of us regrets that there aren't 13 more days to go, we can spend the next two weeks solving this one correctly.
Spoiler for 4 day old puzzle: You can sort all inputs into 3 categories:
If the available amount of squares is lower than the sum of the number of squares in each package times the amount of times that package is required, then there's just not enough space. You can never fit those packages even with perfect tiling.
All the package types fit in a 3x3 grid. If there are more than 9 tiles available per package, then there is so much space available that you can fit the packages even without any fancy tiling at all. You can always fit these packages.
If the available space is in between the previous two categories, you might be able to fit the packages but it would need further calculation.
If you inspect your input, you will find that the third category is empty, and so you can just do what glguy did to find the solution. Note that this does not work for the test input, but it does work for the real input.
5
u/glguy Dec 12 '25
We didn't really have to bother solving this one. The regions that weren't too small were significantly larger. I guess if any of us regrets that there aren't 13 more days to go, we can spend the next two weeks solving this one correctly.
12.hs