UVa 11755 - Table Tennis

DP, math, probability