bhagya.kjain's blog

By bhagya.kjain, history, 18 months ago, In English
  • Vote: I like it
  • +43
  • Vote: I do not like it

»
18 months ago, # |
  Vote: I like it +9 Vote: I do not like it

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 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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.