Hello, I have such a problem, I need to enter such a ten-digit number in ten cells, that the total number of zeros in this number will be written in the zero cell, the number of odinits will be written in "1" and so on until "9", where recorded number 9-ok in the number. So I can’t find it, I even did a search of all the numbers from 1 billion to 9, does not find, can anyone know if there is such a number at all?

  • 7210000100 fits ... hands it is searched. In general, there are not many of them - pavel
  • 2
    @pavel Then 6210001000, no? - Harry
  • @Harry oh well, I forgot to move) - pavel
  • @Harry Thank you very much, I need to review the search algorithm :) - Oleg Kuts
  • Well, actually this is the only such number. As @pavel was looking for it, I don’t really think about it, but an exhaustive search takes not so much time in general ... Especially considering that the sum of the digits should be 10 :) - Harry

0