TopCoder: first 6 solutions