Due to the installation of a new fire alarm in ITMO server room, the system may be occasionally unavailable on the 27-th of May between 06:00 and 15:00 (UTC). ×

LaFuckinGioconda's blog

By LaFuckinGioconda, history, 3 years ago, In English,

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

Thanks in advance.

Read more »

 
 
 
 
  • Vote: I like it  
  • -19
  • Vote: I do not like it  

By LaFuckinGioconda, history, 3 years ago, In English,

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.

Read more »

 
 
 
 
  • Vote: I like it  
  • -4
  • Vote: I do not like it