More CodeForces solutions.