Correct solutions to Problem A and Problem C of CodeForces round 266.
Correct solution to A and C. Almost correct solutions to B and D.