Google Code Jam 2014 Qualification Round
Problem B. Cookie Clicker Alpha
Google Code Jam 2014 R1A
Problem A. Charging Chaos
simplified
translate