Блог пользователя bhagya.kjain

Автор bhagya.kjain, история, 18 месяцев назад, По-английски
  • Проголосовать: нравится
  • +43
  • Проголосовать: не нравится

»
18 месяцев назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

Eolymp is a good platform, and problems there are of high quality. Some problems are either broken or just bad, but there are not many of these.

Overall, I'd recommend you do some specific problems there, like solving some past competitions. But I'd not suggest to use it as a daily training basis.

»
18 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

How to solve this problem from eolymp?

I made these observations:

  • The number of subsets of cubes in input that make a block is quite small (for sure it's $$$\leq 1750$$$, maybe it's even smaller).
  • Then, we have to choose a subset of non-intersecting blocks that cover the whole solid.
  • It would be easy if we removed the condition "non-intersecting" (then, we could just use minimum bipartite vertex cover), but I think it's not possible. For example,
.@..
@@@@
.@..
.@..

can be covered with two blocks only if we allow them to intersect.