Case #1: 0 0.375000 Case #2: 1 1.000000 Case #3: 1 1.000000 Case #4: 0 1.000000 Case #5: 0 0.500000