AOAPC I: Beginning Algorithm Contests -- Training Guide (Rujia Liu Chapter 2. Mathematics::Probability ExamplesExamples:Beginner Examples:IntermediateExamples:Advanced