Expected value problem E atcoder beginner contest 326

Revision en1, by guesshere, 2023-10-30 10:07:23

Hi everyone, referring to yesterday's problem E of atcoder beginner conest 326 Link Can somebody please explain the how to solve such problems? Does it always boil down to writing the answer for a few test cases and observing the pattern? Also can somebody please explain the editorial elaboratively?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English guesshere 2023-10-30 10:07:23 411 Initial revision (published)