Facebook Hacker Cup 2013. Qualification round problems' solutions.