蔡子逸's submission of A Balanced Contest | CodeChef