My solutions for the Facebook Hacker Cup 2013