Tiancheng Lou's submission of Quasi-Polynomial Sum | CodeChef