Блог пользователя skpaopao

Автор skpaopao, 13 лет назад, перевод, По-русски

Suppose there are two kinds of balls (i.e. Good ball and Bad ball) in a bag. Now I take out balls one by one and put them in a line. We denote Good ball as 1 and Bad ball as 0. If there are n balls, then the line can be represented as a vertor a[] of size n, where ai is denoted as follows,

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Does the number of found good balls affect the value of M ... or just the positions of them ?

For example is "1000" better or "0111" ?