10 cubes could be painted in this fashion, so that each cube is different from the others. I am hoping that this answer has satisfied your query and it will be able to help you in your endeavor, and if you would like, feel free to ask another question.