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

Автор LaFuckinGioconda, история, 7 лет назад, По-английски

Hi, I need help with this code, it gives me RuntimeError but i can't figure out why!? 21860477

Thanks in advance.

Полный текст и комментарии »

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

Автор LaFuckinGioconda, история, 8 лет назад, По-английски

Hello, yesterday i tried this problem,without success: Bobbys Bet

To find the expected value i arrived with that formula:

where :

S = number of sides of the dice.

R = min number that we can take.

X = times we need take at least number R.

Y = times we can roll the dice.

W = Bet Payment.

(All are input variables)

this is my code that gives WA:

Code

I really appreciate your help.

Полный текст и комментарии »

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