Code we wrote for the ACM ICPC 2014 regional programming competition.