Solutions to some programming contests I've participated in.