Dyed on the Outside

A confectioner glues 1000 1000 sugar cubes into a solid 10×10×10 10 \times 10 \times 10 block, then dips the whole block briefly into food coloring so that only the outer surface picks up dye. When the block is taken apart, how many of the 1000 1000 sugar cubes have dye on at least one face?

Answer

Free accounts unlock one worked solution a day. Pro includes every answer.