Google Code Jam 2016   Apr 10, 2016

Google Code Jam qualification round was just last weekend and although I didn't get time to participate on Saturday I did spend some time Sunday looking at the problems and having a go at solving them. I attempted two problems which were "Revenge of the Pancakes" and "Counting Sheep" and I've provided my solutions to these problems in this post.

Below you'll find three files. is an abstract class that just handles input/output. Since this is common to more or less every Google Code Jam problem it made sense to share it through inheritance. solves the Counting Sheep problem and solves the Revenge of the Pancakes problem.

Tags for this post: