Devesh Agarwal's submission of Half Weight | CodeChef