Solutions to competition-style problems (mostly TopCoder and CodeForces)