Code from different contests on TopCoder