CodeForces solutions