My solution for the Facebook Hacker Cup 2014 Qualification Round. My solution worked, but my output file wasn't in the right format, so I couldn't officially submit my code. After that, I was just too lazy to try and solve another.