My 2012 Nordic Programming Contest Solutions