Some code written (badly) for time limited programming comps.