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

Автор shantanushanto, 9 лет назад, По-английски

Can anyone please help me to understand the solution of this problem?
ZOJ: 3329: One Person Game
Solution link

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

»
9 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Define f(x) as the expected number of dice rolls if the current number is x. We can express f(x) in the form f(x) = k + a·f(0). Then when we get to f(0) we can use simple algebra to solve for the answer: