Answers/solutions for the dmoj.ca stuff