Tiancheng Lou's submission of Winning Ways | CodeChef