Andrey Kim's submission of The Probability Of Winning | CodeChef