My solutions for the TGPC 2014 competition.