Google Code Jam - 2014 Round A (A) Charging Chaos